What's an efficient way to tell if a bitmap is entirely black?

Posted by Matthew Brindley on Stack Overflow See other posts from Stack Overflow or by Matthew Brindley
Published on 2010-03-31T21:05:01Z Indexed on 2010/03/31 21:13 UTC
Read the original article Hit count: 351

Filed under:
|
|
|

I'm wondering if there's a super-efficient way of confirming that an Image object references an entirely black image, so every pixel within the bitmap is ARGB(255, 0, 0, 0).

What would you recommend? Most of these bitmaps will be 1024 x 6000 pixels (although it's not safe to assume they'll always be that size).

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET