SetDpiCompensatedEffectInput function (d2d1_1helper.h)

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, optional] ID2D1Bitmap             *inputBitmap,
                 D2D1_INTERPOLATION_MODE interpolationMode,
                 D2D1_BORDER_MODE        borderMode
);

Parameters

[in] deviceContext

Type: ID2D1DeviceContext*

The device context that is the creator of the effect.

[in] effect

Type: ID2D1Effect*

The function sets the input of this effect.

inputIndex

Type: UINT32

The index of the input to be set.

[in, optional] inputBitmap

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

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1_1helper.h
Library D2d1.lib
DLL D2d1.dll