Board index » cppbuilder » Saving a TCanvas as a JPG

Saving a TCanvas as a JPG

Hi,

How do I save a Image drawing on a TCanvas in JPG file format.

thanks,
Liam Mullane.

 

Re:Saving a TCanvas as a JPG


Hi Liam,

Quote
> How do I save a Image drawing on a TCanvas in JPG file format.

If possible, record all the drawing routines to a memory TBitmap as they are
drawn to the target Canvas (or use BitBlt or a TImage's Canvas), then simply
create a JPEG from the memory Bitmap.  Otherwise, you'll have to do a screen
capture variation which will not preserve the non-visible portions of the
Canvas.  

Good luck!

--------------------------------------
Damon Chandler

http://bcbcaq.freeservers.com
Answers to <Commonly Asked Questions>
52064929

Other Threads