Results 1 to 5 of 5

Thread: Thumbnails in MSFlexGrid - Resolved

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2004
    Posts
    3

    Thumbnails in MSFlexGrid - Resolved

    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.

  2. #2
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192
    I don't know, try this and tell me what you think.

    Anyway, if it solves the problem you had please edit your post (the one that began the thread) and add "Resolved" to its title.
    Attached Files Attached Files
    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

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    How are you assigning it?

    MSFlexGrid1.CellPicture = pic1.Picture

  4. #4
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192
    Mendhack: Even if you assigned the Picture like this:

    VB Code:
    1. 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

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2004
    Posts
    3

    Resolved

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width