TSRichViewEdit.DrawMetafile

<< Click to display table of contents >>

TSRichViewEdit.DrawMetafile

Paints the specified page in the metafile.

procedure DrawMetafile(PageNo : Integer; PicturePage : TMetafile; 

  PageNoVisible, ClipMargins, Printing : Boolean; 

  NoMetafiles: Boolean = False);

PageNo – index of page, from 1.

PicturePage – a metafile to draw. Page image will be scaled to PicturePage.Width x PicturePage.Height.

PageNoVisible specifies whether to print page numbers (see the properties of PageProperty).

ClipMargins specifies whether all drawing outside the document area (i.e. drawing on margins) will be cropped.

Printing specifies whether this is a drawing for printing (a special method for drawing pictures is used in this case).

The parameter NoMetafiles is used only if Printing = True. If NoMetafiles = False, metafiles are drawn as they are. If True, metafiles are drawn as bitmaps. This option is useful when drawing on canvases of components (such as PDF generators) that do not handle embedded metafiles properly.

See also:

DrawPage

OnDrawHyperlink