Windows apps
Collapse the table of content
Expand the table of content
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.

SetDpiCompensatedEffectInput function

Sets a bitmap as an effect input, while inserting a DPI compensation effect to preserve visual appearance as the device context's DPI changes.

Syntax


HRESULT SetDpiCompensatedEffectInput(
  _In_     ID2D1DeviceContext      *deviceContext,
  _In_     ID2D1Effect             *effect,
           UINT32                  inputIndex,
  _In_opt_ ID2D1Bitmap             *inputBitmap,
           D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR,
           D2D1_BORDER_MODE        borderMode = D2D1_BORDER_MODE_HARD
);

Parameters

deviceContext [in]

Type: ID2D1DeviceContext*

The device context that is the creator of the effect.

effect [in]

Type: ID2D1Effect*

The function sets the input of this effect.

inputIndex

Type: UINT32

The index of the input to be set.

inputBitmap [in, optional]

Type: ID2D1Bitmap*

The input bitmap.

interpolationMode

Type: D2D1_INTERPOLATION_MODE

The interpolation mode for the DPI compensation effect.

borderMode

Type: D2D1_BORDER_MODE

The border mode for the DPI compensation effect.

Return value

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1_1helper.h

Library

D2d1.lib

DLL

D2d1.dll

 

 

Show:
© 2017 Microsoft