TiffSRational Class

Summary: The tiff rational type.

Module: aspose.imaging.fileformats.tiff

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

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 TiffSRational 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_double_fraction(value)Approximates the provided value to a fraction.
approximate_double_fraction_eps(value, epsilon)Approximates the provided value to a fraction.
approximate_float_fraction(value)Approximates the provided value to a fraction.
approximate_float_fraction_eps(value, epsilon)Approximates the provided value to a fraction.
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 TiffSRational class.

Parameters:

ParameterTypeDescription
valueintThe value.

Method: approximate_double_fraction(value) [static]

 approximate_double_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_double_fraction_eps(value, epsilon) [static]

 approximate_double_fraction_eps(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 epsilon.

Method: approximate_float_fraction(value) [static]

 approximate_float_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_float_fraction_eps(value, epsilon) [static]

 approximate_float_fraction_eps(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 epsilon.

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 epsilon.

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 epsilon.