Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
);
Parameters
[out] dpiX
Type: FLOAT*
The dpi on the x-axis.
[out] dpiY
Type: FLOAT*
The dpi on the y-axis.
Return value
None
Remarks
If the D2D1_UNIT_MODE is D2D1_UNIT_MODE_PIXELS, both dpiX and dpiY will be set to 96.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | d2d1effectauthor.h |
Library | D2D1.lib |