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