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
newTokenEffectConfigTokenThe effect configuration token. This may only be
nullif the effect is not configurable, as determined by IsConfigurable.
Exceptions
- ArgumentNullException
The token is
null, but IsConfigurable is true.- InvalidOperationException
Initialize(BitmapEffectInitializeInfo) must be called first.