The Unit enumeration specifies the unit of measure for a given data type.
Syntax
typedef enum {
UnitWorld = 0,
UnitDisplay = 1,
UnitPixel = 2,
UnitPoint = 3,
UnitInch = 4,
UnitDocument = 5,
UnitMillimeter = 6
} Unit;
Constants
- UnitWorld
Specifies world coordinates, a nonphysical unit.
- UnitDisplay
Specifies display units. For example, if the display device is a monitor, then the unit is 1 pixel.
- UnitPixel
Specifies that a unit is 1 pixel.
- UnitPoint
Specifies that a unit is 1 point or 1/72 inch.
- UnitInch
Specifies that a unit is 1 inch.
- UnitDocument
Specifies that a unit is 1/300 inch.
- UnitMillimeter
Specifies that a unit is 1 millimeter.
Enumerated Type Information
| Header | Declared in Gdiplusenums.h, include gdiplus.h |
|---|
| Import library | gdiplus.lib |
|---|
| Minimum availability | GDI+
1.0 |
|---|
| Minimum operating systems |
Windows 98/Me, Windows XP, Windows 2000, Windows NT 4.0 SP6 |
|---|