TiffRational Class
Contents
[
Hide
]Summary: The tiff rational type.
Module: aspose.psd.fileformats.tiff
Full Name: aspose.psd.fileformats.tiff.TiffRational
Aspose.PSD Version: 24.9.0
Constructors
Name | Description |
---|---|
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
Name | Type | Access | Description |
---|---|---|---|
EPSILON [static] | double | r | The epsilon for fraction calculation |
denominator | uint | r | Gets the denominator. |
nominator | uint | r | Gets the nominator. |
value | float | r | Gets the float value. |
value_d | double | r | Gets the double value. |
Methods
Name | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
nominator | uint | The nominator. |
denominator | uint | The denominator. |
Constructor: TiffRational(value)
TiffRational(value)
Initializes a new instance of the TiffRational class.
Parameters:
Parameter | Type | Description |
---|---|---|
value | uint | The nominator value. |
Method: approximate_fraction(value) [static]
approximate_fraction(value)
Approximates the provided value to a fraction.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | The value. |
Returns
Type | Description |
---|---|
TiffRational | A rational number having error less than TiffRational.EPSILON. |
Method: approximate_fraction(value) [static]
approximate_fraction(value)
Approximates the provided value to a fraction.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float | The value. |
Returns
Type | Description |
---|---|
TiffRational | A 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:
Parameter | Type | Description |
---|---|---|
value | double | The value. |
epsilon | double | The error allowed. |
Returns
Type | Description |
---|---|
TiffRational | A rational number having error less than |
Method: approximate_fraction(value, epsilon) [static]
approximate_fraction(value, epsilon)
Approximates the provided value to a fraction.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float | The value. |
epsilon | double | The error allowed. |
Returns
Type | Description |
---|---|
TiffRational | A rational number having error less than |