Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

D2D1EffectAuthor.h

Library

D2D1.lib

See also

ID2D1EffectContext
ID2D1EffectImpl::PrepareForRender

 

 

Community Additions

Show:
© 2014 Microsoft