cloneImage problem
Posted: 2007-10-19T19:48:40-07:00
i write a program to resize an image use resizeImage function,
however i found that, the depth value was changed after resizeImage function called,
then i read the source of the resize.c, find that, the depth was changed after the CloneImage()
like
1172 fprintf(fp, "----- image %u\n", image->depth);
1173
1174 resize_image=CloneImage(image,columns,rows,MagickTrue,exception);
1175
1176 fprintf(fp, "---image %u -- resize_image %u\n", image->depth, resize_image->depth );
the output is
----- image 8
---image 8 -- resize_image 16
is it a bug? or i had made something wrong.
btw, i use ImageMagick-6.3.3,
thanks.
however i found that, the depth value was changed after resizeImage function called,
then i read the source of the resize.c, find that, the depth was changed after the CloneImage()
like
1172 fprintf(fp, "----- image %u\n", image->depth);
1173
1174 resize_image=CloneImage(image,columns,rows,MagickTrue,exception);
1175
1176 fprintf(fp, "---image %u -- resize_image %u\n", image->depth, resize_image->depth );
the output is
----- image 8
---image 8 -- resize_image 16
is it a bug? or i had made something wrong.
btw, i use ImageMagick-6.3.3,
thanks.