Click or drag to resize

PdfUnitConvertor ConvertFromPixels Method (Single, PdfGraphicsUnit)

Converts value, stored in pixels, 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 ConvertFromPixels(
	float value,
	PdfGraphicsUnit to
)

Parameters

value
Type: System Single
Value to convert
to
Type: Spire.Pdf.Graphics PdfGraphicsUnit
Indicates units to convert to

Return Value

Type: Single
Value stored in "to" units
See Also