com.aspose.note

Class DisplayUnitsConverter



  • public final class DisplayUnitsConverter
    extends Object

    The class contains the methods for converting values.

    • Method Detail

      • pointToPixel

        public static int pointToPixel(float points,
                                       float dpi)

        Converts points to pixels at the specified pixel resolution.

        Parameters:
        points - The value to convert in points.
        dpi - Screen resolution.
        Returns:
        The int.
      • pixelToPoint

        public static float pixelToPoint(int pixels,
                                         float dpi)

        Converts pixels to points at the specified pixel resolution.

        Parameters:
        pixels - The value to convert in pixels.
        dpi - Screen resolution.
        Returns:
        The int.
      • inchToPoint

        public static float inchToPoint(float inches)

        Converts inches to points.

        Parameters:
        inches - The value to convert in inches.
        Returns:
        The float.
      • pointToInch

        public static float pointToInch(float points)

        Converts points to inches.

        Parameters:
        points - The value to convert in points.
        Returns:
        The float.
      • millimeterToInch

        public static float millimeterToInch(float mm)

        Converts millimeters to inches.

        Parameters:
        mm - The value to convert in millimeters.
        Returns:
        The float.
      • millimeterToPoint

        public static float millimeterToPoint(float mm)

        Converts millimeters to points.

        Parameters:
        mm - The value to convert in millimeters.
        Returns:
        The float.