01-07-2010 02:48 PM
01-07-2010 03:26 PM
Like any other control, canvas aspect can be saved at any moment to a bitmap which can lately saved to file; don't forget to dispose of the bitmap after using it.
Here's an example of how to do it:
int bitmap = 0;
GetCtrlDisplayBitmap (panel, PANEL_CANVAS, 0, &bitmap);
SaveBitmapToPNGFile (bitmap, "c:\\canvas.png");
DiscardBitmap (bitmap);