Packages

 

com.aspose.imaging.fileformats.psd.resources

Class FixedPointDecimal

  • java.lang.Object
    • com.aspose.imaging.fileformats.psd.resources.FixedPointDecimal


  • public class FixedPointDecimal
    extends Object

    Fixed-point decimal, with 16-bit integer and 16-bit fraction.

    • Constructor Detail

      • FixedPointDecimal

        public FixedPointDecimal(int integer,
                                 int fraction)

        Initializes a new instance of the FixedPointDecimal class.

        Parameters:
        integer - The integer.
        fraction - The fraction.
      • FixedPointDecimal

        public FixedPointDecimal(long value)

        Initializes a new instance of the FixedPointDecimal class. Split the high and low words of a 32-bit integer into a fixed-point number.

        Parameters:
        value - The value.
      • FixedPointDecimal

        public FixedPointDecimal(double value)

        Initializes a new instance of the FixedPointDecimal class.

        Parameters:
        value - The value.
        Throws:
        com.aspose.ms.System.OverflowException
    • Method Detail

      • getInteger

        public int getInteger()

        Gets or sets the integer.

        Value: The integer.
      • setInteger

        public void setInteger(int value)

        Gets or sets the integer.

        Value: The integer.
      • getFraction

        public int getFraction()

        Gets or sets the fraction.

        Value: The fraction.
      • setFraction

        public void setFraction(int value)

        Gets or sets the fraction.

        Value: The fraction.
      • toDouble

        public double toDouble()

        Converts current fixed point decimal to double.

        Returns:
        The converted value.