ID2D1EffectContext::CreateBlendTransform method (d2d1effectauthor.h)

This creates a blend transform that can be inserted into a transform graph.

Syntax

HRESULT CreateBlendTransform(
        UINT32                       numInputs,
  [in]  const D2D1_BLEND_DESCRIPTION *blendDescription,
  [out] ID2D1BlendTransform          **transform
);

Parameters

numInputs

Type: UINT32

The number of inputs to the blend transform.

[in] blendDescription

Type: const D2D1_BLEND_DESCRIPTION*

Describes the blend transform that is to be created.

[out] transform

Type: ID2D1BlendTransform**

The returned blend transform.

Return value

Type: HRESULT

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

HRESULT Description
S_OK No error occurred.
E_OUTOFMEMORY Direct2D could not allocate sufficient memory to complete the call.
E_INVALIDARG An invalid parameter was passed to the returning function.

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

See also

ID2D1EffectContext