ConvertUtil
Overview
ConvertUtil is a class in Aspose.Words FOSS for Java.
Provides helper functions to convert between various measurement units.
Edition status of its 6 listed members (a property and its accessor methods are listed separately, overloads once): 6 not yet exercised by a verified example.
This class declares 8 methods for ConvertUtil objects in Java programs.
Available methods include: inchToPoint, millimeterToPoint, pixelToNewDpi, pixelToPoint, pointToInch, pointToPixel.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Methods
| Signature | Description |
|---|---|
pointToPixel(points: double) → double | Converts points to pixels at 96 dpi. |
pointToPixel(points: double, resolution: double) → double | Converts points to pixels at the specified pixel resolution. |
pixelToPoint(pixels: double) → double | Converts pixels to points at 96 dpi. |
pixelToPoint(pixels: double, resolution: double) → double | Converts pixels to points at the specified pixel resolution. |
pixelToNewDpi(pixels: double, oldDpi: double, newDpi: double) → int | Converts pixels from one resolution to another. |
inchToPoint(inches: double) → double | Converts inches to points. |
pointToInch(points: double) → double | Converts points to inches. |
millimeterToPoint(millimeters: double) → double | Converts millimeters to points. |