com.aspose.note.infrastructure

Class ConvertUtil



  • public class ConvertUtil
    extends Object

    The class contains the methods for converting values.

    • Constructor Detail

      • ConvertUtil

        public ConvertUtil()
    • Method Detail

      • pointToHalfInch

        public static float pointToHalfInch(float points)

        The point to half inch.

        Parameters:
        points - The points.
        Returns:
        The float.
      • halfInchToPoint

        public static float halfInchToPoint(float halfinches)

        The half inch to point.

        Parameters:
        halfinches - The halfinches.
        Returns:
        The float.
      • pointToPixle

        public static int pointToPixle(float points,
                                       float dpi)

        The point to pixle.

        Parameters:
        points - The points.
        dpi - Screen resolution.
        Returns:
        The int.
      • halfInchToInch

        public static float halfInchToInch(float inches)

        Convert half-inch to inches.

        Parameters:
        inches - The inches value.
        Returns:
        Returns float.
      • inchToPoint

        public static float inchToPoint(float inches)

        The inch to point.

        Parameters:
        inches - The inches.
        Returns:
        The float.
      • halfPointToPoint

        public static int halfPointToPoint(int halfpoints)

        Convert half-point to point.

        Parameters:
        halfpoints - The half-point value.
        Returns:
        The points value.
      • pointToHalfPoint

        public static int pointToHalfPoint(int points)

        The point to half point.

        Parameters:
        points - The points.
        Returns:
        The int.
      • indentPositionToPoint

        public static float indentPositionToPoint(byte indentPosition)

        The indent position to point.

        Parameters:
        indentPosition - The indent position.
        Returns:
        The float.