[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.TransformGraph

Class TransformGraph

Namespace
GrapeCity.Documents.DX.Direct2D
Assembly
GcDocs.DX.Windows.dll

ID2D1TransformGraph

[Guid("13d29038-c3e6-4034-9081-13b53a417992")]
public class TransformGraph : ComObject, IDisposable, IUnknown
Inheritance
object
TransformGraph
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

TransformGraph(IntPtr)

Initializes a new instance of the TransformGraph class.

public TransformGraph(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

AddNode(ITransformNode)

Adds the provided node to the transform graph.

public void AddNode(ITransformNode node)

Parameters

node ITransformNode

The node that will be added to the transform graph.

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. Any other kind of interface derived from ITransformNode can be added to the transform graph.

Clear()

void ID2D1TransformGraph::Clear()

public void Clear()

ConnectNode(ITransformNode, ITransformNode, int)

Connects two nodes inside the transform graph.

public void ConnectNode(ITransformNode fromNode, ITransformNode toNode, int toNodeInputIndex)

Parameters

fromNode ITransformNode

The node from which the connection will be made.

toNode ITransformNode

The node to which the connection will be made.

toNodeInputIndex int

The node input that will be connected.

ConnectToEffectInput(int, ITransformNode, int)

[This documentation is preliminary and is subject to change.]

public void ConnectToEffectInput(int toEffectInputIndex, ITransformNode node, int toNodeInputIndex)

Parameters

toEffectInputIndex int

The effect input to which the transform node will be bound.

node ITransformNode

The node to which the connection will be made.

toNodeInputIndex int

The node input that will be connected.

GetInputCount()

unsigned int ID2D1TransformGraph::GetInputCount()

public int GetInputCount()

Returns

int

RemoveNode(ITransformNode)

Removes the provided node from the transform graph.

public void RemoveNode(ITransformNode node)

Parameters

node ITransformNode

The node that will be removed from the transform graph.

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.

SetOutputNode(ITransformNode)

Sets the output node for the transform graph.

public void SetOutputNode(ITransformNode node)

Parameters

node ITransformNode

The node that will be set as the output of the the transform graph.

SetPassthroughGraph(int)

HRESULT ID2D1TransformGraph::SetPassthroughGraph([In] unsigned int effectInputIndex)

public void SetPassthroughGraph(int effectInputIndex)

Parameters

effectInputIndex int

SetSingleTransformNode_(IntPtr)

HRESULT ID2D1TransformGraph::SetSingleTransformNode([In] ID2D1TransformNode* node)

public void SetSingleTransformNode_(IntPtr node)

Parameters

node System.IntPtr

SetSingleTransformNode(ITransformNode)

Sets a single transform node as being equivalent to the whole graph.

public void SetSingleTransformNode(ITransformNode node)

Parameters

node ITransformNode

The node to be set.

Remarks

This equivalent to calling Clear(), adding a single node, and connecting all of the node inputs to the effect inputs in order.

Operators

explicit operator TransformGraph(IntPtr)

Performs an explicit conversion from System.IntPtr to TransformGraph.

public static explicit operator TransformGraph(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

TransformGraph