Table of Contents

Method SetGraph

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

SetGraph(ITransformGraph)

The renderer calls this method to provide the effect implementation with a way to specify its transform graph and transform graph changes.
The renderer calls this method when:

void SetGraph(ITransformGraph transformGraph)

Parameters

transformGraph ITransformGraph

The graph to which the effect describes its transform topology.

Remarks

You usually don't need to implement this method. Instead, perform one-time initialization tasks in Initialize(IDeviceEffectContext, ITransformGraph), and then update or create the effect graph in PrepareForRender(ChangeType).
If the transformGraph is stored by the implementation of this interface, a new ref must be created with the CreateRef() extension method. The object "refs" passed to this method will be disposed once it returns, but creating a new ref extends the lifetime of the underlying object.