Export (0) Print
Expand All

Unit enumeration

Applies to: desktop apps only

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.

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

GDI+ 1.0

Header

Gdiplusenums.h (include Gdiplus.h)

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

ADD
Show:
© 2014 Microsoft