Method SetToken
- Namespace
- PaintDotNet.Effects
- Assembly
- PaintDotNet.Effects.Core.dll
SetToken(EffectConfigToken?)
This should be called when the token changes, such as when the user makes changes in the effect's configuration dialog. This must be called once before rendering may begin. This should only be called when there are no threads busy with calls to Render(void*, int, nint, in PixelFormat, RectInt32).
void SetToken(EffectConfigToken? newToken)
Parameters
newToken
EffectConfigTokenThe effect configuration token. This may only be null if the effect is not configurable, as determined by IsConfigurable.
Exceptions
- InvalidOperationException
Initialize(BitmapEffectInitializeInfo) must be called first.