Class Rational

Class Rational

Nazwa przestrzeń: Aspose.Imaging.Xmp.Types.Derived Zgromadzenie: Aspose.Imaging.dll (25.4.0)

Przedstawiamy XMP Rational.

[JsonObject(MemberSerialization.OptIn)]
public class Rational : XmpTypeBase, IXmpType, ICloneable

Inheritance

object XmpTypeBase Rational

Implements

IXmpType , ICloneable

Dziedziczeni członkowie

XmpTypeBase.GetXmpRepresentation() , XmpTypeBase.ToString() , XmpTypeBase.Clone() , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

Rational(i int, int)

Inicjalizuje nową instancję klasy Aspose.Imaging.Xmp.Types.Derived.Rational.

[JsonConstructor]
public Rational(int numerator, int denominator)

Parameters

numerator int

z numeratorem .

denominator int

To jest denominator.

Exceptions

ArgumentOutOfRangeException

numerator; numerator powinien być grater zero.lubdenominator;Denominator powinien być grater zero.

Properties

Denominator

Zostaw lub ustaw denominator.

[JsonProperty]
public int Denominator { get; set; }

Wartość nieruchomości

int

FloatValue

Otrzymuje wartość float.

public float FloatValue { get; }

Wartość nieruchomości

float

Numerator

Zrób numerator.

[JsonProperty]
public int Numerator { get; }

Wartość nieruchomości

int

Methods

GetXmpRepresentation()

Otrzymuje wartość zawarta w formacie XMP.

public override string GetXmpRepresentation()

Returns

string

Powraca wartość zawartość paska w formacie XMP.

 Polski