Possible Duplicate:
How can I check the color depth of a Bitmap?
I'm receiving the path of a picture. I would need to know if that picture is in grayScale. How can I do this?
I'm trying to load that path to a Bitmap using this code, but it keeps saying me that the parameter is not valid.
Bitmap myBitmap = new Bitmap(pFilePath);
Can I check if it is in grayScale from a ByteArray? Or is there some way to do it from a Bitmap? How would that be?
Thanks.