Common Reference > Document Class > RenderMetafile Method Document.RenderMetafile Method
Return or stream document as one of the Extended Metafile formats.
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.
Overloads
- public void RenderMetafile(Stream stream);
- public void RenderMetafile(Stream stream,PageMode pagemode);
- public void RenderMetafile(Stream stream,PageMode pagemode,TextRenderingHint textmode);
- public void RenderMetafile(Stream stream,PageMode pagemode,TextRenderingHint textmode,EmfType emftype);
- public void RenderMetafile(Stream stream,PageMode pagemode,TextRenderingHint textmode,EmfType emftype,double dpi);
- public Metafile RenderMetafile();
- public Metafile RenderMetafile(PageMode pagemode);
- public Metafile RenderMetafile(PageMode pagemode,TextRenderingHint textmode);
- public Metafile RenderMetafile(PageMode pagemode,TextRenderingHint textmode,EmfType emftype);
- public Metafile RenderMetafile(PageMode pagemode,TextRenderingHint textmode,EmfType emftype,double dpi);
Result
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.
Example
emf=doc.RenderMetafile(PageMode.Horizontal); // Draw pages side-by-side horizontally;
See also ...SharpPlot.RenderMetafile Method | Document.Members | Document.RenderBitmap Method | Document.SaveImage Method
Send comments on this topic © Dyalog Ltd 2021
|