Share via


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

The Rational object has these types of members:

Properties

The Rational object has these properties.

Property Access type Description
Denominator
Read/write
Sets or retrieves the Rational value Denominator.
Numerator
Read/write
Sets or retrieves the Rational value Numerator.
Value (Rational)
Read-only
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.

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 R2 [desktop apps only]
Header
Wiaaut.h
IDL
Wiaaut.idl

See also

Reference

Denominator

Numerator

Value (Rational)