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
IDeviceEffectContextAn internal context interface that creates and returns effect author–centric types.
transformGraph
ITransformGraphThe 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.