Please dont quote this How can I check the color depth of a Bitmap? or How to check if a picture is in grayScale
Because an image can be 24/32 bit per pixel even if
Bitmap.GetPixel() returns a Color structure which has fields R, G and B so you can just compare them however you want.
Bitmap.GetPixel()
R
G
B
Do note that using GetPixel() is very slow, but if you don't need speed it will do.
GetPixel()