CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2001
    Location
    Melbourne/Aus (C# .Net 4.0)
    Posts
    686

    Converting Images to Thumbnails

    I want a user of my application to be able to select a .JPG for inclusion in a Catalogue. When they select the .JPG, it will be moved into the appropriate Catalogue directory structure under a folder called Images. At the same time, I would like a fixed size thumbnail, of the same Image, to be placed in a Thumbnails folder.

    I have no problem with creating etc the folders/files.

    My question is:

    Is there an easy/cool way for me to generate a Thumbnail from an Image? For the purpose of simplicity, assume all of the images are square.

    If it matters, the images will be > 1000x1000 and the Thumbnails will be < 100x100.
    Rob
    -
    Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......

  2. #2
    Join Date
    Jun 2001
    Location
    Melbourne/Aus (C# .Net 4.0)
    Posts
    686

    Re: Converting Images to Thumbnails

    I should add...

    I realise that I could just display the original image in a smaller PictureBox and do away with the Thumbnails... however... There will be lots of images read from a CD (slow), so I prefer to read the small Thumbnail JPG's and cache them, only showing the original large image when absolutely necessary.
    Rob
    -
    Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......

  3. #3
    Join Date
    Jun 2001
    Location
    Melbourne/Aus (C# .Net 4.0)
    Posts
    686

    Re: Converting Images to Thumbnails

    ok, there seems to be an Image.GetThumbnailImage(...) member. I'll check that out.
    Rob
    -
    Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......

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

Featured