Hi,
You can load an image file to a CFbsBitmap object and at the same time resize it (to a thumbnail...)
Code:
TFrameInfo bmpInfo=iDecoder->FrameInfo();
delete iBitmap;
iBitmap = NULL;
iBitmap=new(ELeave) CFbsBitmap;
//TInt err = iBitmap->Create(bmpInfo.iOverallSizeInPixels,bmpInfo.iFrameDisplayMode); // no we don't want to load the full size image
TSize size(bmpInfo.iOverallSizeInPixels.iWidth/2, bmpInfo.iOverallSizeInPixels.iHeight/2);
TInt err = iBitmap->Create(size, bmpInfo.iFrameDisplayMode); // load the image and at the same time resize it to a quarter of the original frame size.
User::LeaveIfError(err);
iDecoder->Convert(&iStatus,*iBitmap);
SetActive();
and some of the image files may contain thumbnails, for example generally the JPEG files captured by the built-in Camera app contain QQVGA (160x120) EXIF thumbnail. As decoding the thumbnail is faster than decoding the main image, you can always try the CImageDecoder::SetImageTypeL(CImageDecoder::EImageTypeThumbnail) before turning to decoding the main image.
"ICLCodec: Decoding/Encoding an image using the Image Conversion Library "
http://library.forum.nokia.com/index...CLExample.html
Regards
Ziteng Chen