D2D1_UNIT_MODE enumeration
Specifies how units in Direct2D will be interpreted.
Syntax
typedef enum { D2D1_UNIT_MODE_DIPS = 0, D2D1_UNIT_MODE_PIXELS = 1 } D2D1_UNIT_MODE;
Constants
- D2D1_UNIT_MODE_DIPS
-
Units will be interpreted as device-independent pixels (1/96").
- D2D1_UNIT_MODE_PIXELS
-
Units will be interpreted as pixels.
Remarks
Setting the unit mode to D2D1_UNIT_MODE_PIXELS is similar to setting the ID2D1DeviceContext dots per inch (dpi) to 96. However, Direct2D still checks the dpi to determine the threshold for enabling vertical antialiasing for text, and when the unit mode is restored, the dpi will be remembered.
Requirements
|
Minimum supported client |
Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps] |
|
Header |
|
See also