Class TiffSRational
- Namespace
- Aspose.Imaging.FileFormats.Tiff
- Assembly
- Aspose.Imaging.dll
The tiff rational type.
public class TiffSRational
- Inheritance
-
TiffSRational
- Inherited Members
Constructors
TiffSRational()
Initializes a new instance of the TiffSRational class.
public TiffSRational()
TiffSRational(int)
Initializes a new instance of the TiffSRational class.
public TiffSRational(int value)
Parameters
value
intThe value.
TiffSRational(int, int)
Initializes a new instance of the TiffSRational class.
public TiffSRational(int nominator, int denominator)
Parameters
Fields
Epsilon
The epsilon for fraction calculation
public const double Epsilon = 1E-06
Field Value
Properties
Denominator
Gets the denominator.
public int Denominator { get; }
Property Value
- int
The denominator.
Nominator
Gets the nominator.
public int Nominator { get; }
Property Value
- int
The nominator.
Value
Gets the float value.
public float Value { get; }
Property Value
- float
The float value.
ValueD
Gets the double value.
public double ValueD { get; }
Property Value
- double
The double value.
Methods
ApproximateFraction(double)
Approximates the provided value to a fraction.
public static TiffSRational ApproximateFraction(double value)
Parameters
value
doubleThe value.
Returns
- TiffSRational
A rational number having error less than Epsilon.
ApproximateFraction(double, double)
Approximates the provided value to a fraction.
public static TiffSRational ApproximateFraction(double value, double epsilon)
Parameters
Returns
- TiffSRational
A rational number having error less than
epsilon
.
ApproximateFraction(float)
Approximates the provided value to a fraction.
public static TiffSRational ApproximateFraction(float value)
Parameters
value
floatThe value.
Returns
- TiffSRational
A rational number having error less than Epsilon.
ApproximateFraction(float, double)
Approximates the provided value to a fraction.
public static TiffSRational ApproximateFraction(float value, double epsilon)
Parameters
Returns
- TiffSRational
A rational number having error less than
epsilon
.
Equals(object)
Determines whether the specified object is equal to this instance.
public override bool Equals(object obj)
Parameters
Returns
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
- int
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
ToString()
Returns a string that represents this instance.
public override string ToString()