| Contents > SharpPlot > Methods | Index |
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
- public void SaveImage(string filename);
- public void SaveImage(string filename,ImageFormat format);
- public void SaveImage(string filename,ImageFormat format,int dpi);
- public void SaveImage(string filename,ImageFormat format,TextRenderingHint textmode);
- public void SaveImage(string filename,ImageFormat format,int dpi,TextRenderingHint textmode);
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
