Hi guys,
is there a possibility to get the colordepth of an image?
For example i have a 4 channel tif-file and each channel has 8bit.
So is there a function which gives me 32 as the colordepth of the image?
thanks
colordepth of the whole image not the separate channels?
-
- Posts: 20
- Joined: 2017-08-29T06:37:37-07:00
- Authentication code: 1151
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: colordepth of the whole image not the separate channels?
I don't use Magick.NET, but I don't think there is a function for that. You can write your own, that multiplies the number of channels by the bits per channel.
snibgo's IM pages: im.snibgo.com
Re: colordepth of the whole image not the separate channels?
There is no function for that but you could do `image.Depth * image.ChannelCount` as @snibgo suggested.
-
- Posts: 20
- Joined: 2017-08-29T06:37:37-07:00
- Authentication code: 1151
Re: colordepth of the whole image not the separate channels?
thx for the fast answer