TiffRational Class

Summary: The tiff rational type.

Module: aspose.imaging.fileformats.tiff

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

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_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: 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_double_fraction(value) [static]

 approximate_double_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_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
TiffRationalA 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
TiffRationalA rational number having error less than TiffRational.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
TiffRationalA 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
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 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
TiffRationalA rational number having error less than epsilon.