ID2D1EffectContext::GetDpi method
Gets the unit mapping that an effect will use for properties that could be in either dots per inch (dpi) or pixels.
Syntax
void GetDpi( [out] FLOAT *dpiX, [out] FLOAT *dpiY ) const;
Parameters
- dpiX [out]
-
Type: FLOAT*
The dpi on the x-axis.
- dpiY [out]
-
Type: FLOAT*
The dpi on the y-axis.
Return value
This method does not return a value.
Remarks
If the D2D1_UNIT_MODE is D2D1_UNIT_MODE_PIXELS, both dpiX and dpiY will be set to 96.
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 |
|
|
Library |
|
See also