Rational Object

Holds the rational values found in Exchangeable Image File (EXIF) tags. It is a supported element type of the Vector object and can be created using "WIA.Rational" as the ProgID in a call to CreateObject. The Rational object is a container.

Members Table

The following table lists the members exposed by the Rational object.

Property Description
Denominator Sets or retrieves the Rational value Denominator.
Numerator Sets or retrieves the Rational value Numerator.
Value (Rational) Retrieves the Rational value as a Double.

Remarks

Note that the Value (Rational) property is read-only. This is because there can be more than one way to represent a rational value as a floating point number. To set the value of a Rational object, you must set its Numerator and Denominator separately.

For example code, see Set Rational Numerator and Denominator in Shared Samples.

Object Information

CLSID Not available
Minimum operating systems Windows XP SP1

See Also

Denominator, Numerator, Value (Rational)