Skip to content
Discussion options

You must be logged in to vote

For this particular image you could use the Histogram method of MagickImage:

using (var image = new MagickImage("test.tif"))
{
    var colors = image.Histogram();
    var blackPixelCount = colors[MagickColors.Black];
}

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@sihj2002
Comment options

Comment options

You must be logged in to vote
2 replies
@sihj2002
Comment options

@sihj2002
Comment options

Answer selected by sihj2002
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants