Click or drag to resize

PdfUnitConvertor ConvertFromPixels Method (RectangleF, PdfGraphicsUnit)

Converts rectangle in Pixels into rectangle with 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 RectangleF ConvertFromPixels(
	RectangleF rect,
	PdfGraphicsUnit to
)

Parameters

rect
Type: System.Drawing RectangleF
source rectangle in pixels units
to
Type: Spire.Pdf.Graphics PdfGraphicsUnit
convert to units

Return Value

Type: RectangleF
output Rectangle in specified units
See Also