ID2D1TransformGraph::RemoveNode method (d2d1effectauthor.h)

Removes the provided node from the transform graph.

Syntax

HRESULT RemoveNode(
  [in] ID2D1TransformNode *node
);

Parameters

[in] node

Type: ID2D1TransformNode*

The node that will be removed from 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
D2DERR_NOT_FOUND = (HRESULT_FROM_WIN32(ERROR_NOT_FOUND)) Direct2D could not locate the specified node.

Remarks

The node must already exist in the graph; otherwise, the call fails with D2DERR_NOT_FOUND.

Any connections to this node will be removed when the node is removed.

After the node is removed, it cannot be used by the interface until it has been added to the graph by AddNode.

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