Document Solutions for PDF
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / Page Class / AdjustCoordinates Method / AdjustCoordinates(RectangleF,Boolean,Single,Single) Method
The System.Drawing.RectangleF to adjust.
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).
The horizontal device resolution.
The vertical device resolution.

In This Topic
    AdjustCoordinates(RectangleF,Boolean,Single,Single) Method
    In This Topic
    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.

    Syntax
    'Declaration
     
    Public Overloads Function AdjustCoordinates( _
       ByVal value As System.Drawing.RectangleF, _
       Optional ByVal fromBottomLeft As System.Boolean, _
       Optional ByVal deviceDpiX As System.Single, _
       Optional ByVal deviceDpiY As System.Single _
    ) As System.Drawing.RectangleF
    public System.Drawing.RectangleF AdjustCoordinates( 
       System.Drawing.RectangleF value,
       System.bool fromBottomLeft,
       System.float deviceDpiX,
       System.float deviceDpiY
    )

    Parameters

    value
    The System.Drawing.RectangleF to adjust.
    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).
    deviceDpiX
    The horizontal device resolution.
    deviceDpiY
    The vertical device resolution.

    Return Value

    The adjusted System.Drawing.RectangleF.
    See Also