Closed kevalpatel2106 closed 1 year ago
Thanks for the PR. This however only indicates whether the bitmap was allocated, not whether the bitmap is empty. Moreover, we don't give a way to allocate 0x0 bitmaps, so I'm not even sure in which situations you could get a Bitmap with an allocation count of 0.
I had an issue once where the server was sending invalid image bitmap size was zero after bitmap was generated from an input stream. These methods can help to check for the correct bitmap size.
Extension functions to check if the bitmap is empty or not using byte counts. See #568 .
Usage:
or