| ||
Introducing SharpPlot Your First Chart Recent Updates Sample Charts Tutorials General Tutorials Chart Tutorials SharpPlot Class Properties Structures Enumerations Style examples Glossaries Active Charts VectorMath Class DBUtil Class Get SharpPlot Download SharpPlot Buying SharpPlot SharpPlot Support Upgrading from GraPL Release notes |
Reference > Methods > SaveImage Method SharpPlot.SaveImage MethodThe chart is written to file in the required image format (bitmap if not supplied). Examplesp.SaveImage("chart.png",System.Drawing.Imaging.ImageFormat.Png,144); sp.SaveImage("chart.emf",System.Drawing.Imaging.ImageFormat.Emf); Overloads
DescriptionTo 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, but older applications may require the old tags as a fallback. The default is to use both forms, but this may make the file larger than you need. See also ...SharpPlot Members | RenderBitmap Method | RenderMetafile Method |