



Collapse All
Syntax| HRESULT PlayEMF ( LONG metafileHandle, LONG reserved, DOUBLE x, DOUBLE y, DOUBLE scaleX, DOUBLE scaleY ) |
RemarksThis method paints the context of the metafile (provided by the handle) on the page at the specified coordinates (x, y) with scaling (scaleX, scaleY).
Equivalent in new interface: IPDFDocument4::PlayMetaFileFromHandle.
Example{ PDF object is supposed to be created }
PDF.UseScreenDC := true;
PDF.BeginDoc;
HENHMETAFILE hMetafile := GetEnhMetaFile('logo.emf');
PDF.PlayEMF(hMetafile, 0, 10, 10, 1.0, 1.0);
PDF.EndDoc;
// PDF object is supposed to be created
PDF->UseScreenDC = TRUE;
PDF->BeginDoc();
HENHMETAFILE hMetafile = GetEnhMetaFile("logo.emf");
PDF->PlayEMF(hMetafile, 0, 10, 10, 1.0, 1.0);
PDF->EndDoc();
// PDF object is supposed to be created
PDF.UseScreenDC = true;
PDF.BeginDoc();
HENHMETAFILE hMetafile = GetEnhMetaFile("logo.emf");
PDF.PlayEMF(hMetafile, 0, 10, 10, 1.0, 1.0);
PDF.EndDoc();
' PDF object is supposed to be created
PDF.UseScreenDC = True
PDF.BeginDoc
HENHMETAFILE hMetafile = GetEnhMetaFile("logo.emf")
PDF.PlayEMF hMetafile, 0, 10, 10, 1.0, 1.0
PDF.EndDoc
See Also