tags:

views:

100

answers:

1

Hi,

Given a .NET Image object, how do I check if it represents a picture that's completely black? (C#)

10x!

+4  A: 

Convert your image to a Bitmap and use its GetPixel()-Method to check the color of the pixel at position x, y. If all pixels are black, the image is black.

Simon
Great. The bitmap.getpixel() was exactly what i was missing. from there testing if it's black is indeed trivial.