Saving Controls as Images

Chart and widget controls can be saved as images in files. In order to use this export option you can add the next code to an event handler, for example:

widget1.Instrument.SaveAsImage("widget.bmp",
PerpetuumSoft.Framework.Drawing.PictureFormat.Bmp);

During debugging process this code automatically creates .bmp file which contains the chart image. You can define another file image format: jpg, gif, etc.

Add Feedback