Detecting a blank or empty bmp file
Posted on 2006-11-21
I would like to know if there is a way to detect a blank bmp file.
Through various ways found on internet, I am able to convert a image to grayscale as well as invert the images but I would like to know if there is a way to see this bmp consists black and white color in it.
In other words, if I have a empty bmp. I can invert the image to black. So my output now is all black. If I detect all black in bmp and no white that means it is empty since it has only one color. If it were not empty, it would have white somewhere.
How can I detect this colors (in my case, only black or white) in a bmp file programmatically.
I am using C# and this is all about windows application.
Thank you in advance,