XmpRational class

XmpRational class

Represents XMP XmpRational.

Inheritance: XmpRationalXmpValueBasePropertyValue

The XmpRational type exposes the following members:

Constructors

Constructor Description
__init__(self, numerator, denominator) Initializes a new instance of the XmpRational class.
__init__(self, value) Initializes a new instance of the XmpBoolean class.

Properties

Property Description
type Gets the MetadataPropertyType.
raw_value Gets the raw value.
numerator Gets numerator.
denominator Gets denominator
double_value Gets value of rational type presented in double format.

Methods

Method Description
accept_value(self, value_acceptor) Extracts the property value using a custom ValueAcceptor.
get_xmp_representation(self) Returns string contained value in XMP format.

See Also