Pocket PC Controls.com

Chart.SaveToBitmap Method 

Saves the chart area to the specified file in the specified image format

[Visual Basic]
Public Sub SaveToBitmap( _
   ByVal String As String, _
   ByVal ImageFormat As ImageFormat _
)
[C#]
public void SaveToBitmap(
   String FilePath,
   ImageFormat Format
);

Parameters

String
Fully qualified path in which to save the image
ImageFormat
Image format to save to

Example

This example shows how to save the chart area to a bitmap

[C#]

  private void SaveChartToImage()
  {
    chart1.SaveToBitmap(@"\My Documents\Chart1.bmp", System.Drawing.Imaging.ImageFormat.Bmp);
  }

[Visual Basic]

  Private Sub SaveChartToImage()
  
    Chart1.SaveToBitmap(@"\My Documents\Chart1.bmp", System.Drawing.Imaging.ImageFormat.Bmp)

  End Sub

See Also

Chart Class | PPCC.Chart Namespace