Re: how can i get a thumbnail from an image in uiq
Use CImageDecoder and CImageEncoder
1. Convert the image to CFbsBitmap using CImageDecoder
2. CFbsBitmap::Resize to resize
3. Use CImageEncoder to convert the resized CFbsBitmap to the format you want
Re: how can i get a thumbnail from an image in uiq
CFbsBitmap::Resize does not scale your image, it will just resize the bitmap, cropping any image stored there.
If you want to make a thumbnail, you should use for example CBitmapScaler, it will scale your image and also use filtering, which is very much needed for thumbnails to look good.
Forum posts: 1
Even i've same problem, How to generate thumbnails for images which are stored in ROM(*.Jpegs, *.gifs) in my application ?
Forum posts: 53
Class CImageEncoder can be helpful
good luck
Forum posts: 286
Use CImageDecoder and CImageEncoder
1. Convert the image to CFbsBitmap using CImageDecoder
2. CFbsBitmap::Resize to resize
3. Use CImageEncoder to convert the resized CFbsBitmap to the format you want
Cheers,
Sri
Forum posts: 1233
CFbsBitmap::Resize does not scale your image, it will just resize the bitmap, cropping any image stored there.
If you want to make a thumbnail, you should use for example CBitmapScaler, it will scale your image and also use filtering, which is very much needed for thumbnails to look good.
Forum posts: 286
Thanks alh for correcting me
Cheers,
Sri