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).>
Using AForgeNET library (http://www.aforgenet.com) could also be a solution:
public bool IsNotBlackImage()
{
Assembly assembly = this.GetType().Assembly;
var imgTest = new Bitmap(assembly.GetManifestResourceStream("TestImage.png"));
var imgStatistics = new ImageStatistics(imgTest);
return imgStatistics.PixelsCountWithoutBlack != 0;
}
For ImageStatistics class reference AForge.Imaging.dll in your project.
http://code.google.com/p/aforge/source/browse/trunk/Sources/Imaging/ImageStatistics.cs