I would like to display "thumbnails" of images in a MSFlexGrid. The pictures I have available are in general too large, so I need a method to convert the size.
I tried loading into a small Image control (setting Stretch=true) and then assigning the picture from this control to the cell in the MSFlexGrid, but that did not work.
Any ideas?
Last edited by DaveTorr; May 14th, 2004 at 03:51 PM.
Mendhack: Even if you assigned the Picture like this:
VB Code:
Set MSFlexGrid1.Picture = Image1.Picture
Wouldn't do the trick because the Picture the Image Control has will provide you with the one of the original size.
What he is trying to do is to get the stretched Picture he has there, but remember a Image Control has no "Image" Property, so that would require some API (which in my code sample you don't have to use)
We miss you, friend... Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
Thanks to all - someone else pointed me at ImageMagick which does exactly what I want - I just call the Convert function and it produces a "thumbnail" JPEG which I can then load into the FlexGrid