How to save a picture from the canvas for viewing it later?

Just use the GlobalTools class from our package and call the ExportToPng function. Supposing you have drawn the desired graph in the Canvas, all you need to do now in order to save it locally as a .png picture will be to use this line of code:

' save the image
SoftwareGFX_Library.GlobalTools.ExportToPng("chart_sample.png", Canvas1)

Leave a Reply

You must be logged in to post a comment.