ChannelsProvider Class

Contains methods and properties providing access to bitmap channels.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public sealed class ChannelsProvider

Remarks

This class is accessible via the Bitmap.Channels property. It allows you to extract bitmap channels to separate grayscale images, or replace some channel with another grayscale bitmap. You can do that using Channel properties. Here you can set an alpha channel (SetAlpha()) or remove it (RemoveAlpha() method). Using Transparentize(Color, Single) method you can make alpha channel transparent at the areas with specified color.

Examples

C#
using (var bitmap = new Bitmap(@"Images\cmyk.tif"))
{
    var cyanBitmap = bitmap.Channels[Channel.Cyan];
    cyanBitmap.Save(@"Images\Output\Cmyk_test_Channel_C.tif");

    var alphaBitmap = bitmap.Channels[Channel.Alpha];
    alphaBitmap.Save(@"Images\Output\Cmyk_test_Channel_A.tif");
}

Inheritance Hierarchy

System.Object
L Aurigma.GraphicsMill.ChannelsProvider

Thread Safety

Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.

See Also

Reference

Manual