ConvertUtil
Overview
ConvertUtil is a class in Aspose.Words FOSS for .NET.
Provides helper functions to convert between various measurement units.
This class provides 8 methods for working with ConvertUtil objects in .NET programs.
Available methods include: InchToPoint, MillimeterToPoint, PixelToNewDpi, PixelToPoint, PointToInch, PointToPixel.
All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package.
Methods
| Signature | Description |
|---|---|
PointToPixel(points: double) | Converts points to pixels. |
PointToPixel(points: double, resolution: double) | Converts points to pixels at the specified pixel resolution. |
PixelToPoint(pixels: double) | Converts pixels to points. |
PixelToPoint(pixels: double, resolution: double) | Converts pixels to points at the specified pixel resolution. |
PixelToNewDpi(pixels: double, oldDpi: double, newDpi: double) | Converts pixels from one resolution to another. |
InchToPoint(inches: double) | Converts inches to points. |
PointToInch(points: double) | Converts points to inches. |
MillimeterToPoint(millimeters: double) | Converts millimeters to points. |