Table of Contents

Enum ColorChannels

Namespace
Egami.Operations
Assembly
Egami.dll

A set of a raster's working RGBA channels, for OnChannels(ColorChannels, Action<RasterOps>).

[Flags]
public enum ColorChannels

Fields

All = Color | Alpha

Every channel.

Alpha = 8

Alpha.

Blue = 4

Blue.

Color = Red | Green | Blue

Red, green and blue.

Green = 2

Green.

None = 0

No channel.

Red = 1

Red.

Examples

// Soften only the alpha; invert only the red.
photo.Apply(ops => ops
    .OnChannels(ColorChannels.Alpha, o => o.Blur(2))
    .OnChannels(ColorChannels.Red, o => o.Invert()), Ct);