PdfUnitConvertor
ConvertFromPixels Method (RectangleF, PdfGraphicsUnit)
|
Converts rectangle in Pixels into rectangle with specified
measure units
Namespace:
Spire.Pdf.Graphics
Assembly:
Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public RectangleF ConvertFromPixels(
RectangleF rect,
PdfGraphicsUnit to
)
Public Function ConvertFromPixels (
rect As RectangleF,
to As PdfGraphicsUnit
) As RectangleF
public:
RectangleF ConvertFromPixels(
RectangleF rect,
PdfGraphicsUnit to
)
member ConvertFromPixels :
rect : RectangleF *
to : PdfGraphicsUnit -> RectangleF
Parameters
-
rect
-
Type:
System.Drawing
RectangleF
source rectangle in pixels units
-
to
-
Type:
Spire.Pdf.Graphics
PdfGraphicsUnit
convert to units
Return Value
Type:
RectangleF
output Rectangle in specified units
See Also