|
PlayMetafile procedure (TgtCustomDocumentEngine) |
Top |
|
Used to draw a metafile on current page.
procedure PlayMetafile (Metafile: TMetafile); override; procedure PlayMetafile (X, Y: Double; Metafile: TMetafile); override; procedure PlayMetafile (DestRect: TgtRect, MetaFile: TMetaFile); override;
Description
Call PlayMetaFile with a MetaFile to draw a metafile on current page from starting point of page.
Call PlayMetaFile with a MetaFile and X, Y coordinates to draw a metafile on current page starting from X , Y positions of the page.
Call PlayMetaFile with a MetaFile and a Destination Rectangle to scale the metafile to the passed rectangle's size.
Example:
Delphi:
gtPDFEngine1.FileName := 'C:\Metafile.pdf'; //... Set any other required properties gtPDFEngine1.PlayMetafile(Metafile1); //... Use this overloaded version to position the metafile within the document gtPDFEngine1.PlayMetafile(3, 3, Metafile2);
C++Builder:
gtPDFEngine1->FileName = "C:\\Metafile.pdf"; //... Set any other required properties gtPDFEngine1->PlayMetafile(Metafile1); //... Use this overloaded version to position the metafile within the document gtPDFEngine1->PlayMetafile(3, 3, Metafile2); |