Table of Contents

Method Initialize

Namespace
PaintDotNet.Direct2D1.Effects
Assembly
PaintDotNet.Windows.Core.dll

Initialize(IDeviceEffectContext, ITransformGraph)

The effect can use this method to do one time initialization tasks.
ID2D1EffectImpl::Initialize

public void Initialize(IDeviceEffectContext effectContext, ITransformGraph transformGraph)

Parameters

effectContext IDeviceEffectContext

An internal context interface that creates and returns effect author–centric types.

transformGraph ITransformGraph

The effect can populate the transform graph with a topology and can update it later.

Remarks

If the effectContext or transformGraph are 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.