Click to Rate and Give Feedback
MSDN
MSDN Library
GDI+
GDI+ Reference
Enumerations
 Unit Enumerated Type
Unit Enumerated Type

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

HeaderDeclared in Gdiplusenums.h, include gdiplus.h
Import librarygdiplus.lib
Minimum availabilityGDI+ 1.0
Minimum operating systems Windows 98/Me, Windows XP, Windows 2000, Windows NT 4.0 SP6
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker