TX Text Control .NET Documentation

Page.GetImage Method

Description:Gets an image of the page's contents. The image is either an enhanced metafile or a bitmap in screen resolution.

Syntax:
[C#] public System.Drawing.Imaging.Metafile GetImage(PageContent contents) public System.Drawing.Imaging.Bitmap GetImage(int zoomFactor, PageContent contents)
[Visual Basic] Public Function GetImage(ByVal Contents As PageContent) As System.Drawing.Imaging.Metafile Public Function GetImage(ByVal ZoomFactor As Integer, ByVal Contents As PageContent) As System.Drawing.Imaging.Bitmap
ParameterDescription
zoomFactorSpecifies a zooming factor in percent. It can be a value between 10 and 400 percent.

contentsSpecifies the image's contents. It can be one or more of the following values:

ValueMeaning
AllThe image contains all parts.

BackgroundThe image contains the background of the page.

HeadersAndFootersThe image contains the header and the footer of the page.

MainTextThe image contains the page's text contents.


Introduced:15.0

See also:Sections and Pages, Graphical Overview.