|
[How To] Use the DrawToBitmap function in vb.net
|
|
04-30-2012, 08:39 PM
(This post was last modified: 04-30-2012 08:43 PM by Hefin.)
Post: #1
|
|||
|
|||
|
Use the DrawToBitmap function in vb.net
The DrawToBitmap function accepts two parameters , 1) bitmap Which accepts the object of bitmap where it will draw to. 2) targetBounds Which specifies the size of the drawing. The main use of the function is like a Screen Shot or to draw the specified bounds to Image, which can be saved in different formats. This function can be found on most of the controls including the form. So this means you can make a complete form and the controls inside it as a Image and save it. There are many cases where you could use this function some of the examples are If you want the whole form to be saved as a image. If you want only the image of the Panel and the controls inside it. How to Use the Code
Please ask if you have any doubts. |
|||
| Advertisements |
|
« Next Oldest | Next Newest »
|
![]() |
|||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|
User(s) browsing this thread: 1 Guest(s)





![[-]](images/Windows7/collapse.gif)






