Hi there ...
first, thanks a lot for giving me the time to have a look on this issue ...
recently, I downloded and began testing ImageMagick-6.2.8-8 ... I have a
proplem in using it ... when I ask for the image-depth and image-resolution ...
it returns to me a wrong answer ... I'm using windows XP ...
I had added the following statment to the UTIL_IMDisplay project after
buliding the solution ...
where m_pImage is a variable of type Image from Magick++ ....
//************************************************************************
int resX = (int)m_pImage.xResolution();
int resY = (int)m_pImage.yResolution();
int bitDepth1 = (int) m_pImage.modulusDepth();
int bitDepth2 = (int) m_pImage.depth();
ImageType it = m_pImage.type();
//************************************************************************
of my understanding that the depth() return the actual bit-depth of the image
... this mean how many bits per-pixel are there as encoded in the image-file...
right???....
modulusDepth() return the mimimal bits per-pixel is needed to represent the
image ... which mean it perfroms few image analysis on intensity values ...
right???
then, the return image type (ImageType)... (from my testing) ... it seems
that it relies on modulusDepth() ... right???
for example, if we load a 32 bits per-pixel image and it is totally black
with one intensity value (0=black) ... then,depth() must return 32 and
modulusDepth() must return 1 ... and the return image type will be BiLevel ...
xResolution() and xResolution() mostly return incorrect values ... 25 ... 37
... 0!!! ...
What is the problem ... is it in my code ... is it a bug in the both libs ...
or what ...
do you have any suggestions ... please advice me ... it is an urgent issue
...
thanks for all in advance ... I really highly appreciate all of you ...
Sammer.
---------------------------------
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail Beta.
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users