Click or drag to resize

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
)

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