Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: BPP

$
0
0
While that would be helpful it wouldn't immediately solve my problem. If it were changed to return an int of the Count of Channels it would help. At least then I could get the Depth * the ChannelCount to get BPP.

The reason I want BPP is:
  1. It's available in most imaging toolkits so it's very commonly used. That's why i was shocked not to be able to find it anywhere.
  2. My specific need is to filter out all images below 24bpp from a list.
Right now I have kind of a hack-ish solution with this code.
int colorType = (int)Convert.ChangeType(curImage.ColorType, curImage.ColorType.GetTypeCode());
    bool isTrueColor = colorType >= 6 && colorType <= 9;
    ColorSpace cs = curImage.ColorSpace;
I'm just using the bool right now but I put the ColorSpace in to double check. Just trying to find something that would work.

Thanks,
Darren

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>