[]
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.
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
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. |
Type | Description |
---|---|
Quadrilateral | The adjusted Quadrilateral. |
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.
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
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. |
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.
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
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. |
Type | Description |
---|---|
RectangleF | The adjusted RectangleF. |