[im-users] using IM image resize function
yip tommy
yiptommy at yahoo.com.hk
Mon Jan 31 14:20:18 BRST 2005
I want to resize my RGB image. I found on the
documentation that I can call imProcessResize() to do
this.
However, after I do the resize, I can get back only
the red channel data. I lost the G, B channels.
Is that the imProcessResize() function can only
perform on gray level images only? Or I used the wrong
code to do?
I used these codes to perform the resize action:
imFile* ifile = imFileOpen("test.jpg", &error);
imImage *image = imFileLoadImage(ifile, 0, &error);
imImage *imageResized = imImageClone( image1 );
imageResized->width = image1->width/2;
imageResized->height = image1->height/2;
imProcessResize( image1, imageResized, 1 );
Did I use wrong code?
Thanks.
Tommy
_________________________________________________________
¥²±þ§Þ¡B¶¼ºq¡B¤p¬P¬P...
®öº©¹aÁn ±¡¤ß³sô
http://us.rd.yahoo.com/evt=22281/*http://ringtone.yahoo.com.hk/
More information about the imtoolkit-users
mailing list