GrayscaleToRGB Class
Convert grayscale image to RGB.

Namespace:  AForge.Imaging.Filters
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public sealed class GrayscaleToRGB : BaseFilter

Remarks

The filter creates color image from specified grayscale image initializing all RGB channels to the same value - pixel's intensity of grayscale image.

The filter accepts 8 bpp grayscale images and produces 24 bpp RGB image.

Sample usage:

CopyC#
// create filter
GrayscaleToRGB filter = new GrayscaleToRGB( );
// apply the filter
Bitmap rgbImage = filter.Apply( image );

Inheritance Hierarchy

System..::.Object
  AForge.Imaging.Filters..::.BaseFilter
    AForge.Imaging.Filters..::.GrayscaleToRGB

See Also