开发者

Is a .NET image completely black?

Given a .NET Image object, ho开发者_Go百科w do I check if it represents a picture that's completely black? (C#)

10x!


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜