View previous topic :: View next topic |
Author |
Message |
Halftime
Joined: 12 Nov 2006 Posts: 7 Location: Charlotte NC
|
Posted: Thu Jun 07, 2007 11:50 pm Post subject: Make a Bitmap image from a currently displayed treeview |
|
|
I would to sometimes paste the contents of whats displayed on the treeview into an email or similar. So I imagin if I can get a bitmap image then I could put in to the clipboard so I can paste it into a word document.
Is there an easy way to do this ?
Thanks,
Mike _________________ Michael Miller
HalfTime Technologies |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Fri Jun 08, 2007 2:31 am Post subject: |
|
|
If you want an image of exactly what is currently displayed on the screen then you are probably best to look at some of the published techniques for grabbing an image from the screen (a search on Google groups should give you these).
If you would like more control over what is on the image then you could use the VirtualTree.Print function. This allows you to print the selected rows to a graphics context. You would create a bitmap and get a graphics context that allows drawing to the bitmap then use the Print method to draw the rows of the tree you wish to print. _________________ Infralution Support |
|
Back to top |
|
|
|