SharpPlot Reference > SharpPlot Methods > SaveImage Method

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.

For charts saved as Metafiles you may need to experiment with the optimum EmfType parameter. Modern software should read the new GDI+ metafile tags correctly (EmfPlusOnly), but older applications may require the old tags as a fallback (EmfOnly). The default is to use both forms (EmfPlusDual), but this may make the file larger than you need.

See also ...

SharpPlot Members | SharpPlot.RenderBitmap Method | SharpPlot.RenderMetafile Method


Send comments on this topic
© Dyalog Ltd 2016