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