Extracts/replaces specified bitmap channel to/with grayscale Bitmap.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public Default Property Channel ( _ colorChannel As ColorChannel _ ) As Bitmap
public Bitmap this[ ColorChannel colorChannel ] { get; set; }
Type: Aurigma.GraphicsMill.ColorChannel
ColorChannel value specifying an alias of channel to retrieve. Draw attention, it does not check color space, so if you pass, say, Yellow to RGB color, you will get a channel stored at the same index as yellow in CMYK (i.e. Green).Dim red As Aurigma.GraphicsMill.Bitmap = _ bitmap.Channels(Aurigma.GraphicsMill.ColorChannel.Red)
Aurigma.GraphicsMill.Bitmap red = bitmap.Channels[Aurigma.GraphicsMill.ColorChannel.Red];
bitmap.Channels(Aurigma.GraphicsMill.ColorChannel.Red) = red
bitmap.Channels[Aurigma.GraphicsMill.ColorChannel.Red] = red;