SharpPlot.SaveImage Method

The chart is written to file in the required image format (bitmap if not supplied).

Example

sp.SaveImage("chart.png",System.Drawing.Imaging.ImageFormat.Png,144);
sp.SaveImage("chart.emf",System.Drawing.Imaging.ImageFormat.Emf);

Overloads

Description

To prepare an image for publication, you may need a DPI setting of 300-1200 depending on the demands of the repro house. For a chart to be shown on the web, a resolution of 96dpi is generally adequate. The text will be anti-aliased by default, but you may over-ride the text-rendering algorithm by passing in the standard .Net rendering hint as a final option.

See also ...

SharpPlot Members | RenderBitmap Method | RenderMetafile Method