Table of Contents

Class InputSwizzleEffect

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

Swizzles the channels from a variable number of inputs. You can specify the input index and channel that corresponds to each output channel.

This effect supports any number of inputs, but only 4 can be used at once. Use InputCount to specify the number of inputs.

If you are only swizzling from 1 input, it is recommended to use the PixelSwizzleEffect instead.

output = new Color(
    Input[RedInputIndex][RedInputChannel],
    Input[GreenInputIndex][GreenInputChannel],
    Input[BlueInputIndex][BlueInputChannel],
    Input[AlphaInputIndex][AlphaInputChannel]);
public sealed class InputSwizzleEffect : CustomEffect<InputSwizzleEffect.Props>, ISerializable, IDeviceEffect, IDeviceImage, IDirect2DResource, IFactoryProperty, IDeviceEffectProperties, IInternalImpl, IObjectRef, IIsDisposed, IDisposable
Inheritance
InputSwizzleEffect
Implements
Inherited Members

Constructors

InputSwizzleEffect(IDeviceEffectFactory)