Rational Class

Summary: Represents XMP Rational.

Module: aspose.imaging.xmp.types.derived

Full Name: aspose.imaging.xmp.types.derived.Rational

Inheritance: IXmpType, XmpTypeBase

Constructors

NameDescription
Rational(numerator, denominator)Initializes a new instance of the Rational class.

Properties

NameTypeAccessDescription
denominatorintr/wGets or sets the denominator.
float_valuefloatrGets the float value.
numeratorintrGets the numerator.

Methods

NameDescription
get_xmp_representation()Gets thestring contained value in XMP format.

Constructor: Rational(numerator, denominator)

 Rational(numerator, denominator) 

Initializes a new instance of the Rational class.

Parameters:

ParameterTypeDescription
numeratorintThe numerator.
denominatorintThe denominator.

Method: get_xmp_representation()

 get_xmp_representation() 

Gets thestring contained value in XMP format.

Returns

TypeDescription
stringReturns the string contained value in XMP format.