开发者

Is a .NET image completely black?

开发者 https://www.devze.com 2023-01-01 17:08 出处:网络
Given a .NET Image object, ho开发者_Go百科w do I check if it represents a picture that\'s completely black? (C#)

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

精彩评论

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