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

SignatureDescription
pointToPixel(points: double) → doubleConverts points to pixels at 96 dpi.
pointToPixel(points: double, resolution: double) → doubleConverts points to pixels at the specified pixel resolution.
pixelToPoint(pixels: double) → doubleConverts pixels to points at 96 dpi.
pixelToPoint(pixels: double, resolution: double) → doubleConverts pixels to points at the specified pixel resolution.
pixelToNewDpi(pixels: double, oldDpi: double, newDpi: double) → intConverts pixels from one resolution to another.
inchToPoint(inches: double) → doubleConverts inches to points.
pointToInch(points: double) → doubleConverts points to inches.
millimeterToPoint(millimeters: double) → doubleConverts millimeters to points.

See Also