how can i get a thumbnail from an image in uiq

Login to reply to this topic.
Mon, 2005-12-19 10:07
Joined: 2005-12-07
Forum posts: 2
hi all

i have a problem, plz if anybody knows how to get a thumbnail of an image (.jpeg) in UIQ plz tell me.

thanks
huss

Tue, 2007-08-07 07:43
Joined: 2007-08-07
Forum posts: 1
Re: how can i get a thumbnail from an image in uiq

Even i've same problem, How to generate thumbnails for images which are stored in ROM(*.Jpegs, *.gifs) in my application ? Puzzled Puzzled Puzzled

Tue, 2007-08-07 07:51
Joined: 2007-04-29
Forum posts: 53
Re: how can i get a thumbnail from an image in uiq

Class CImageEncoder can be helpful

good luck

Tue, 2007-08-07 07:57
Joined: 2004-05-21
Forum posts: 286
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

Cheers,
Sri

Tue, 2007-08-07 10:02
Joined: 2004-11-29
Forum posts: 1233
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.

Tue, 2007-08-07 10:11
Joined: 2004-05-21
Forum posts: 286
Re: how can i get a thumbnail from an image in uiq

Thanks alh for correcting me

Cheers,
Sri

  • Login to reply to this topic.