TSRichViewEdit.DrawPage

<< Click to display table of contents >>

TSRichViewEdit.DrawPage

Draws the PageNo-th page onto the specified canvas.

procedure DrawPage(PageNo, PageWd, PageHt, OffX, OffY: Integer; 

  CanvasPage: TCanvas; PageNoVisible, ClipMargins, Printing: Boolean;

  UseWordPainters: Boolean; ForMetafile: Boolean = False;

  NoMetafiles: Boolean = False);

PageNo – index of page, from 1.

CanvasPage – a canvas where to draw.

Bounds(OffX, OffY, PageWd, PageHt) defines a rectangle on CanvasPage where the page will be drawn. Page image will be scaled to PageWd x PageHt.

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).

If UseWordPainters=True, live spelling underlines will be drawn.

If ForMetafile=False, printing output may be incompatible with metafiles; the component may use font glyph indexes instead of character codes when printing text. Such metafiles will be displayed incorrectly on computers without this font or with another version of this font.

If ForMetafile=True, the component always uses character codes when printing text, to create metafile-compatible output.

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:

DrawMetafile

OnDrawHyperlink