Results 1 to 2 of 2

Thread: resize picture in flexgridcell

  1. #1

    Thread Starter
    Addicted Member chrisvl's Avatar
    Join Date
    Jul 2001
    Location
    Belgium - Somewhere between the bedroom and the toilet...or at work playing Oracle DBA :-)
    Posts
    233

    resize picture in flexgridcell

    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

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

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