[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Page.AdjustCoordinates

AdjustCoordinates Method

AdjustCoordinates(Quadrilateral, bool, float, float)

Converts specified visual coordinates (usually in the coordinate system with the origin in the top left corner of the page and the Y axis going down, see fromBottomLeft) to coordinates that take into account Rotate, CropBox and MediaBox (if CropBox is not specified) values.

This method should be used when positioning annotations or destinations on a page. Do not use this method when drawing on Graphics.

Declaration
public Quadrilateral AdjustCoordinates(Quadrilateral value, bool fromBottomLeft = false, float deviceDpiX = 72, float deviceDpiY = 72)
Public Function AdjustCoordinates(value As Quadrilateral, Optional fromBottomLeft As Boolean = False, Optional deviceDpiX As Single = 72, Optional deviceDpiY As Single = 72) As Quadrilateral
Parameters
Type Name Description
Quadrilateral value

The Quadrilateral to adjust.

bool fromBottomLeft

If true, the source coordinates' origin is in the bottom left corner of the page with Y axis going up (by default it is in the top left corner with Y axis going down).

float deviceDpiX

The horizontal device resolution.

float deviceDpiY

The vertical device resolution.

Returns
Type Description
Quadrilateral

The adjusted Quadrilateral.

AdjustCoordinates(PointF, bool, float, float)

Converts specified visual coordinates (usually in the coordinate system with the origin in the top left corner of the page and the Y axis going down, see fromBottomLeft) to coordinates that take into account Rotate, CropBox and MediaBox (if CropBox is not specified) values.

This method should be used when positioning annotations or destinations on a page. Do not use this method when drawing on Graphics.

Declaration
public PointF AdjustCoordinates(PointF value, bool fromBottomLeft = false, float deviceDpiX = 72, float deviceDpiY = 72)
Public Function AdjustCoordinates(value As PointF, Optional fromBottomLeft As Boolean = False, Optional deviceDpiX As Single = 72, Optional deviceDpiY As Single = 72) As PointF
Parameters
Type Name Description
PointF value

The PointF to convert.

bool fromBottomLeft

If true, the source coordinates' origin is in the bottom left corner of the page with Y axis going up (by default it is in the top left corner with Y axis going down).

float deviceDpiX

The horizontal device resolution.

float deviceDpiY

The vertical device resolution.

Returns
Type Description
PointF

The adjusted PointF.

AdjustCoordinates(RectangleF, bool, float, float)

Converts specified visual coordinates (usually in the coordinate system with the origin in the top left corner of the page and the Y axis going down, see fromBottomLeft) to coordinates that take into account Rotate, CropBox and MediaBox (if CropBox is not specified) values.

This method should be used when positioning annotations or destinations on a page. Do not use this method when drawing on Graphics.

Declaration
public RectangleF AdjustCoordinates(RectangleF value, bool fromBottomLeft = false, float deviceDpiX = 72, float deviceDpiY = 72)
Public Function AdjustCoordinates(value As RectangleF, Optional fromBottomLeft As Boolean = False, Optional deviceDpiX As Single = 72, Optional deviceDpiY As Single = 72) As RectangleF
Parameters
Type Name Description
RectangleF value

The RectangleF to adjust.

bool fromBottomLeft

If true, the source coordinates' origin is in the bottom left corner of the page with Y axis going up (by default it is in the top left corner with Y axis going down).

float deviceDpiX

The horizontal device resolution.

float deviceDpiY

The vertical device resolution.

Returns
Type Description
RectangleF

The adjusted RectangleF.