Groups | Blog | Home
all groups > dotnet windows forms > april 2004 >

dotnet windows forms : Need help with control's Graphics


Leonid Shirmanov
4/13/2004 4:39:59 PM
Hi!

I have a custom control with a drawing made on its Graphics
and I want to save this drawing to image file (jpeg for example).

Does anyone know how this can be done?


Thanks in advance,
Leonid.

hirf-spam-me-here NO[at]SPAM gmx.at
4/13/2004 5:14:56 PM
* "Leonid Shirmanov" <leonid@shirmanov.com> scripsit:
[quoted text, click to view]

Instead of drawing onto the control directly, create a 'Bitmap' of
appropriate size and draw onto the bitmap, then draw the bitmap onto the
control and/or save it by calling its 'Save' method.

--
Herfried K. Wagner [MVP]
AddThis Social Bookmark Button