This topic has not yet been rated - Rate this topic

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]

Header

D2D1EffectAuthor.h

Library

D2D1.lib

See also

ID2D1EffectContext
ID2D1EffectImpl::PrepareForRender

 

 

Send comments about this topic to Microsoft

Build date: 11/29/2012

Community Additions

ADD
© 2013 Microsoft. All rights reserved.