PdfUnitConvertor
ConvertUnits Method
|
Converts the value, stored in "from" units, to value in "to" units
Namespace:
Spire.Pdf.Graphics
Assembly:
Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public float ConvertUnits(
float value,
PdfGraphicsUnit from,
PdfGraphicsUnit to
)
Public Function ConvertUnits (
value As Single,
from As PdfGraphicsUnit,
to As PdfGraphicsUnit
) As Single
public:
float ConvertUnits(
float value,
PdfGraphicsUnit from,
PdfGraphicsUnit to
)
member ConvertUnits :
value : float32 *
from : PdfGraphicsUnit *
to : PdfGraphicsUnit -> float32
Parameters
-
value
-
Type:
System
Single
Value to convert
-
from
-
Type:
Spire.Pdf.Graphics
PdfGraphicsUnit
Indicates units to convert from
-
to
-
Type:
Spire.Pdf.Graphics
PdfGraphicsUnit
Indicates units to convert to
Return Value
Type:
Single
Value stored in "to" units
See Also