How to check if BMP is a monochrome or not ? #2179
Replies: 2 comments 1 reply
-
You can try use The code will allow you to open the image and read info about the image without actually consuming memory or changing bits. |
Beta Was this translation helpful? Give feedback.
-
Maybe help you BmpMetadata contains accurate BmpBitsPerPixel. Reading only image info example (without fully loading): |
Beta Was this translation helpful? Give feedback.
-
Hi Team,
I am new to SkiaSharp and looking for a way to validate if my bmp image is monochrome or not?
I am doing it something like this
The BitPerPixel always gives "32" , even for a monochrome image where I am expecting it to be "1".Kindly help
Beta Was this translation helpful? Give feedback.
All reactions