TiffRational Class

Summary: The tiff rational type.

Module: aspose.psd.fileformats.tiff

Full Name: aspose.psd.fileformats.tiff.TiffRational

Aspose.PSD Version: 24.9.0

Constructors

NameDescription
TiffRational()Initializes a new instance of the TiffRational class.
TiffRational(nominator, denominator)Initializes a new instance of the TiffRational class.
TiffRational(value)Initializes a new instance of the TiffRational class.

Properties

NameTypeAccessDescription
EPSILON [static]doublerThe epsilon for fraction calculation
denominatoruintrGets the denominator.
nominatoruintrGets the nominator.
valuefloatrGets the float value.
value_ddoublerGets the double value.

Methods

NameDescription
approximate_fraction(value)Approximates the provided value to a fraction.
approximate_fraction(value)Approximates the provided value to a fraction.
approximate_fraction(value, epsilon)Approximates the provided value to a fraction.
approximate_fraction(value, epsilon)Approximates the provided value to a fraction.

Constructor: TiffRational()

 TiffRational() 

Initializes a new instance of the TiffRational class.

Constructor: TiffRational(nominator, denominator)

 TiffRational(nominator, denominator) 

Initializes a new instance of the TiffRational class.

Parameters:

ParameterTypeDescription
nominatoruintThe nominator.
denominatoruintThe denominator.

Constructor: TiffRational(value)

 TiffRational(value) 

Initializes a new instance of the TiffRational class.

Parameters:

ParameterTypeDescription
valueuintThe nominator value.

Method: approximate_fraction(value) [static]

 approximate_fraction(value) 

Approximates the provided value to a fraction.

Parameters:

ParameterTypeDescription
valuedoubleThe value.

Returns

TypeDescription
TiffRationalA rational number having error less than TiffRational.EPSILON.

Method: approximate_fraction(value) [static]

 approximate_fraction(value) 

Approximates the provided value to a fraction.

Parameters:

ParameterTypeDescription
valuefloatThe value.

Returns

TypeDescription
TiffRationalA rational number having error less than TiffRational.EPSILON.

Method: approximate_fraction(value, epsilon) [static]

 approximate_fraction(value, epsilon) 

Approximates the provided value to a fraction.

Parameters:

ParameterTypeDescription
valuedoubleThe value.
epsilondoubleThe error allowed.

Returns

TypeDescription
TiffRationalA rational number having error less than .

Method: approximate_fraction(value, epsilon) [static]

 approximate_fraction(value, epsilon) 

Approximates the provided value to a fraction.

Parameters:

ParameterTypeDescription
valuefloatThe value.
epsilondoubleThe error allowed.

Returns

TypeDescription
TiffRationalA rational number having error less than .