SharpPlot Reference > SharpPlot Methods > RenderMetafile Method

SharpPlot.RenderMetafile Method

Return completed chart rendered as a Metafile object.

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.

Example

metafile cht = sp.RenderMetafile();

Return Value

The result of this call is a Metafile object which may be used as required to save the chart to file, or display it on an application control such as a PictureBox. There is no result if the user passes a Stream – the EMF content is simply appended to the stream.

Overloads

See also ...

SharpPlot Members | SharpPlot.SaveImage Method


Send comments on this topic
© Dyalog Ltd 2021