XY Chart NET 3 Control Reference
SaveChartImageToPNG Method

Use this method to save an image of the resulting chart to a W3C Portable Network Graphics (PNG) file.   The image is a capture of the chart as it is at that moment.   This method is equivalent to selecting the Save Image button in the Toolbar, and then selecting the appropriate file type from the Save dialog.

Syntax
[Visual Basic]
Sub SaveChartImageToPNG(PathAndFilename As String)
[C#]
void XYChartNETCtl.SaveChartImageToPNG(string PathAndFilename)
[C++]
void SaveChartImageToPNG(System::String __gc *)
       
Parameters
PathAndFilename
Name of the file to save the image to.
Example
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

XYChartNETCtl1.SaveChartImageToPNG("c:\image\xychart06.png")  'Save image to file
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

XYChartNETCtl1.SaveChartImageToPNG("c:\\image\\xychart06.png");  //Save image to file
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

XYChartNETCtl1->SaveChartImageToPNG("c:\\image\\xychart06.png");  //Save image to file
See Also

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.