Convert grayscale image to RGB.
Namespace:
AForge.Imaging.FiltersAssembly: 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:

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