Class BlendEffect2
- Namespace
- PaintDotNet.Direct2D1.Effects
- Assembly
- PaintDotNet.Windows.Framework.dll
Similar to BlendEffect, but with different blend modes. Includes the layer blend
modes from Paint.NET that are not supported by BlendEffect, such as Xor. Does not
include the blend modes that are supported by BlendEffect.
The classic "Normal" blend mode from Paint.NET is equivalent to SourceOver
or CompositeSourceOver.
The inputs are converted to straight alpha if the AlphaMode property is set to Premultiplied. The
blend mode is applied, then the result is clamped to the range [0, 1] (unless the
ClampOutput property is set to false). Lastly, the output is premultiplied
if the AlphaMode property is set to Premultiplied.
For a convenient way to use any blend or composite mode, see MixEffect.
public sealed class BlendEffect2 : CustomEffect<BlendEffect2.Props>, ISerializable, IDeviceEffect, IDeviceImage, IDirect2DResource, IFactoryProperty, IDeviceEffectProperties, IObjectRef, IIsDisposed, IDisposable, IInternalImpl
- Inheritance
-
BlendEffect2
- Implements
- Inherited Members