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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top