PDA

Click to See Complete Forum and Search --> : resize picture in flexgridcell


chrisvl
Aug 2nd, 2001, 01:01 AM
Hello there,

Since this is also the graphics programming corner I think this question belongs here.

This may be an easy question but how do I resize e picture that is in a cell of a flexgrid??

I need to show many pictures (I develop some sort of thumbnail viewer) but I always get the 'Out of memory' error when creating too many imageBoxes...So I searched the web and found out you can store pictures in a flexgrid. COOL! now I use only one control for many pictures, but...I can't manage to resize them...the cells of a flexgrid have no strech property or something like that.

Can someone help me out? I want to shrink the picture so it fits in a cell !

Thanks for your help!


Christophe

Sastraxi
Aug 2nd, 2001, 09:39 AM
If the cells have hDCs or better yet (maybe...) have the paintpicture option in them, use that to resize them to your liking. If they have hDCs, use the StretchBlit API.