Table of Contents

Class FloodEffect

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

Use the flood effect to generate a bitmap based on the specified color and alpha value. You can use this effect when you want a specific color as an input for an effect, like a background color.

For more information, see Flood effect

public sealed class FloodEffect : DeviceEffect<FloodEffect.Props>, ISerializable, IDeviceEffect, IDeviceImage, IDirect2DResource, IFactoryProperty, IDeviceEffectProperties, IInternalImpl, IObjectRef, IIsDisposed, IDisposable
Inheritance
FloodEffect
Implements
Inherited Members
Extension Methods

Remarks

NOTE: This effect passes along the color value exactly as specified. You must pre-multiply the value if you plan to pass the output to effects that expect a pre-multiplied input, which is almost always the case. If you have a ColorRgba128Float, you can convert it to a premultiplied ColorPrgba128Float with the ToPremultiplied() method, then cast to Vector4Float when setting the Color property.

You can use FloodEffect2 to simplify setting the Color property.

Constructors

FloodEffect(IDeviceEffectFactory)
FloodEffect(IDeviceEffectFactory, Vector4Float)