TiffSRational Class

Summary: The tiff rational type.

Module: aspose.psd.fileformats.tiff

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

Aspose.PSD Version: 24.9.0

Constructors

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

Properties

NameTypeAccessDescription
EPSILON [static]doublerThe epsilon for fraction calculation
denominatorintrGets the denominator.
nominatorintrGets 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: TiffSRational()

 TiffSRational() 

Initializes a new instance of the TiffSRational class.

Constructor: TiffSRational(nominator, denominator)

 TiffSRational(nominator, denominator) 

Initializes a new instance of the TiffSRational class.

Parameters:

ParameterTypeDescription
nominatorintThe nominator.
denominatorintThe denominator.

Constructor: TiffSRational(value)

 TiffSRational(value) 

Initializes a new instance of the TiffRational class.

Parameters:

ParameterTypeDescription
valueintThe nominator value.

Method: approximate_fraction(value) [static]

 approximate_fraction(value) 

Approximates the provided value to a fraction.

Parameters:

ParameterTypeDescription
valuedoubleThe value.

Returns

TypeDescription
TiffSRationalA rational number having error less than TiffSRational.EPSILON.

Method: approximate_fraction(value) [static]

 approximate_fraction(value) 

Approximates the provided value to a fraction.

Parameters:

ParameterTypeDescription
valuefloatThe value.

Returns

TypeDescription
TiffSRationalA rational number having error less than TiffSRational.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
TiffSRationalA 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
TiffSRationalA rational number having error less than .