NetXP 3.0 Reference

Graph.SaveBitmap Method 

Exports the graph as a bitmap image. The file extension specifies the format.

[Visual Basic]
Public Sub SaveBitmap( _
   ByVal filename As String, _
   ByVal width As Integer, _
   ByVal height As Integer _
)
[C#]
public void SaveBitmap(
   string filename,
   int width,
   int height
);

Parameters

filename
The file name.

Formats supported include:
  • GIF - GIF format (256 colors)
  • JPG - JPEG format (Standard compression)
  • PNG - PNG format (Lossless compression)
  • BMP - Bitmap Image for Windows (Standard)
  • EMF - Enhanced MetaFile format
  • ICO - Icon (Not sure what it'll look like though)
  • TIF - TIFF format with standard compression
  • WMF - Windows MetaFile format
  • Any other extension default to Bitmap (BMP) format.
width
The width of the image.
height
The height of the image.

See Also

Graph Class | NETXP.Controls Namespace