Packages

 

com.aspose.psd.xmp.types.derived

Class Rational

  • All Implemented Interfaces:
    IXmpType


    public class Rational
    extends XmpTypeBase

    Represents XMP Rational.

    • Constructor Detail

      • Rational

        public Rational(int numerator,
                        int denominator)

        Initializes a new instance of the Rational class.

        Parameters:
        numerator - The numerator.
        denominator - The denominator.
        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - numerator;Numberator should be grater zero. or denominator;Denominator should be grater zero.
    • Method Detail

      • getNumerator

        public int getNumerator()

        Gets the numerator.

        Value: The numerator.
      • getDenominator

        public int getDenominator()

        Gets or sets the denominator.

        Returns:
        The denominator.
      • setDenominator

        public void setDenominator(int value)

        Gets or sets the denominator.

        Parameters:
        value - The denominator.
      • getFloatValue

        public float getFloatValue()

        Gets the float value.

        Returns:
        The float value.