[]
ID2D1TransformGraph
[Guid("13d29038-c3e6-4034-9081-13b53a417992")]
public class TransformGraph : ComObject, IDisposable, IUnknown
Initializes a new instance of the TransformGraph class.
public TransformGraph(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Adds the provided node to the transform graph.
public void AddNode(ITransformNode node)
node
ITransformNodeThe node that will be added to the transform graph.
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. Any other kind of interface derived from ITransformNode can be added to the transform graph.
void ID2D1TransformGraph::Clear()
public void Clear()
Connects two nodes inside the transform graph.
public void ConnectNode(ITransformNode fromNode, ITransformNode toNode, int toNodeInputIndex)
fromNode
ITransformNodeThe node from which the connection will be made.
toNode
ITransformNodeThe node to which the connection will be made.
toNodeInputIndex
intThe node input that will be connected.
[This documentation is preliminary and is subject to change.]
public void ConnectToEffectInput(int toEffectInputIndex, ITransformNode node, int toNodeInputIndex)
toEffectInputIndex
intThe effect input to which the transform node will be bound.
node
ITransformNodeThe node to which the connection will be made.
toNodeInputIndex
intThe node input that will be connected.
unsigned int ID2D1TransformGraph::GetInputCount()
public int GetInputCount()
Removes the provided node from the transform graph.
public void RemoveNode(ITransformNode node)
node
ITransformNodeThe node that will be removed from the transform graph.
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.
Sets the output node for the transform graph.
public void SetOutputNode(ITransformNode node)
node
ITransformNodeThe node that will be set as the output of the the transform graph.
HRESULT ID2D1TransformGraph::SetPassthroughGraph([In] unsigned int effectInputIndex)
public void SetPassthroughGraph(int effectInputIndex)
effectInputIndex
intHRESULT ID2D1TransformGraph::SetSingleTransformNode([In] ID2D1TransformNode* node)
public void SetSingleTransformNode_(IntPtr node)
node
System.IntPtrSets a single transform node as being equivalent to the whole graph.
public void SetSingleTransformNode(ITransformNode node)
node
ITransformNodeThe node to be set.
This equivalent to calling Clear(), adding a single node, and connecting all of the node inputs to the effect inputs in order.
Performs an explicit conversion from System.IntPtr to TransformGraph.
public static explicit operator TransformGraph(IntPtr nativePointer)
nativePointer
System.IntPtr