Method SetZoom
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
SetZoom(double)
Sets the magnification level to use when displaying the page in the view.
public void SetZoom(double zoomPercent)
Parameters
zoomPercent
doubleThe magnification level in percent.
Remarks
The target page will be displayed starting from the upper side of the page.
The zoom percent equal to 0 means that an application displaying the document should not change magnification level before displaying this view.
The magnification level should be 0 or in the range [8..3200].
This method sets the zoom type to PercentBased
and Top property to null
.
SetZoom(PdfPoint, double)
Sets the magnification level to use when displaying the page in the view.
public void SetZoom(PdfPoint position, double zoomPercent)
Parameters
position
PdfPointPdfPoint structure that specifies the upper-left corner of the page to be positioned at the upper-left corner of the window when this view gets displayed.
The vertical coordinate is relative to the bottom edge of the page. I.e. vertical offset 0 means "display bottom edge of the Page at the top edge of the window", which effectively means "display the top edge of the next page at the top edge of the window".
Use the following formula to calculate vertical offset relative to the top edge of the page:
(Page.Height - Top)
.zoomPercent
doubleThe magnification level in percent.
Remarks
The target page will be displayed starting from position
.Top offset
relative to the bottom edge of the page.
The zoom percent equal to 0 means that an application displaying the document should not change magnification level before displaying this view.
The magnification level should be 0 or in the range [8..3200].
This method sets the zoom type to PercentBased.