I am building an application in C# and .NET 2.0 which takes an 8 bit grayscale image as input, does some operation on the pixel values and writes back to the image. When I write the pixel values back to the bitmap, the image is being displayed in color. Please help me fix this problem.
Thanks,
Rakesh.
Replicate the gray value across all three channels.