Need help with control's Graphics

  • Thread starter Thread starter Leonid Shirmanov
  • Start date Start date
L

Leonid Shirmanov

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.
 
* "Leonid Shirmanov said:
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?

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.
 
Back
Top