I'm using the wand interface in my software for reading images.
As my software can handle and display anything from 8-bit images to full
HDR images, I need to obtain the (best/original) bit depth of the image
that image magick read.
Currently, I am using:
unsigned long depth = MagickGetImageDepth( wand );
The problem with this call is that it seems to be EXTREMELY slow
(specially noticeable on large images like 4K images). It seems to
iterate through all the pixels.
I'm looking for a function call or struct member that just tells me the
bit-depth of the (original) image as read.
That is, probably just:
wand->image_info->depth
or
wand->image->depth
but, incredibly, this seems to not be part of the exposed api.
--
Gonzalo Garramuño
[EMAIL PROTECTED]
AMD4400 - ASUS48N-E
GeForce7300GT
Xubuntu Gutsy
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users