PdfUnitConvertor
ConvertToPixels Method (RectangleF, PdfGraphicsUnit)
|
Converts the rectangle location and size to Pixels from 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 ConvertToPixels(
RectangleF rect,
PdfGraphicsUnit from
)
Public Function ConvertToPixels (
rect As RectangleF,
from As PdfGraphicsUnit
) As RectangleF
public:
RectangleF ConvertToPixels(
RectangleF rect,
PdfGraphicsUnit from
)
member ConvertToPixels :
rect : RectangleF *
from : PdfGraphicsUnit -> RectangleF
Parameters
-
rect
-
Type:
System.Drawing
RectangleF
source rectangle
-
from
-
Type:
Spire.Pdf.Graphics
PdfGraphicsUnit
source rectangle measure units
Return Value
Type:
RectangleF
Rectangle with Pixels
See Also