|
Method DrawMetafileEx |
Top Previous Next |
|
You can use this procedure to draw a metafile which was created by a component such as WPForm or QuickReport. 'Meta' is the handle of the metafile, provided by TMetafile.Handle, x,y,w,h is the position and size measured in PDF pixel (see StartPage). The last two parameters are the resolution of the reference canvas used to create this metafile. Please provide it if you know it, otherwise set the parameter to 0.
If you have to draw multiple metafiles better use Canvas.StretchDraw( ) to draw the metafiles.
Note: All functions which draw metafiles do not need an open PDF page. If no PDF page is open there will be one created and automatically closed. |