ID2D1TransformGraph::AddNode method (d2d1effectauthor.h)

Adds the provided node to the transform graph.

Syntax

HRESULT AddNode(
  [in] ID2D1TransformNode *node
);

Parameters

[in] node

Type: ID2D1TransformNode*

The node that will be added to the transform graph.

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.

Remarks

This adds a transform node to the transform graph. A node must be added to the transform graph before it can be interconnected in any way.

A transform graph cannot be directly added to another transform graph. Only interfaces derived from ID2D1TransformNode can be added to the transform graph.

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

ID2D1TransformGraph