Navigation:  DPLOTLIB Functions >

DPlot_GetEnhMetaFile function

Print this Topic Previous pageReturn to chapter overviewNext page

HENHMETAFILE DPlot_GetEnhMetaFile(int DocNum, float cx, float cy);

Parameters

DocNum

Document index for the document that you want a metafile picture of (1-32). In practice this will generally (though not necessarily) be the return value of a call to DPlot_Plot.

cx, cy

Requested width and height of the metafile, in inches.

Return Values

 0

Generic error attempting to communicate with DPlot. This most often indicates that DPlot is currently busy, e.g. a modal dialog box is open.
 

Please note: DPlot will not produce a metafile for 3D views or for 2D views with shaded bands (ContourMethod(0)) or bands + lines (ContourMethod(6)). If you try, you will get a not especially helpful (in this case) return value of 0. The reason for this limitation is fairly simple: those renderings draw every individual dot. Although DPlot could do this with metafiles, at 2540 dpi this would result in a very, very large metafile assuming you don't run out of memory in the attempt.

>0

Handle to an enhanced metafile. This picture may be drawn in your application with the Windows API function PlayEnhMetaFile.

 

 

 

 


Page url: http://www.dplot.com/lib/index.htm?dplot_getenhmetafile.htm