.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

Units.PixelsToDocuments Method

Name Parameters Description
PixelsToDocuments(Double, Single) static val, dpi

Converts a measurement from pixels to documents. Returns the converted measurement as an Integer.

PixelsToDocuments(Int32, Single) static val, dpi

Converts a measurement from pixels to documents. Returns the converted measurement as an Integer.

PixelsToDocuments(Point, Single, Single) static point, dpiX, dpiY

Converts point coordinates from pixels to documents.

PixelsToDocuments(Rectangle, Single, Single) static rect, dpiX, dpiY

Converts a rectangle from pixels to documents.

PixelsToDocuments(RectangleF, Single, Single) static rect, dpiX, dpiY

Converts rectangle coordinates from pixels to documents.

PixelsToDocuments(Size, Single, Single) static size, dpiX, dpiY

Converts measurements from pixels to documents.