PdfUnitConvertor
ConvertFromPixels Method (SizeF, PdfGraphicsUnit)
|
Converts Size in pixels to size in 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 SizeF ConvertFromPixels(
SizeF size,
PdfGraphicsUnit to
)
Public Function ConvertFromPixels (
size As SizeF,
to As PdfGraphicsUnit
) As SizeF
public:
SizeF ConvertFromPixels(
SizeF size,
PdfGraphicsUnit to
)
member ConvertFromPixels :
size : SizeF *
to : PdfGraphicsUnit -> SizeF
Parameters
-
size
-
Type:
System.Drawing
SizeF
source size
-
to
-
Type:
Spire.Pdf.Graphics
PdfGraphicsUnit
convert to units
Return Value
Type:
SizeF
output size in specified measure units
See Also