Page 1 of 1

Saving content of a ThumbnailViewer as new big jpg?

Posted: Wed Jul 13, 2011 11:17 pm
by communi
Hello,

I have the content of a folder (containing images) displayed as thumbnails in a ThumbnailViewer. Now I'd like to save this displayed content as a big jpg file (as I would make a screenshot of Windows Explorer with big symbols enabled), I want to have a jpg file with the folder content thumbnails as tiles in it. How can I realize this?

THX!

Re: Saving content of a ThumbnailViewer as new big jpg?

Posted: Fri Jul 22, 2011 8:44 pm
by Alex
Hello,

I think you should:
  • Get a list of image files in the directory
  • Calculate size of big "screenshot" image and create big "screenshot" image
  • For each image file in the directory
    • Create a VintasoftImage object associated with image file: VintasoftImage VSImage = VintasoftImage(filename);
    • Get a thumbnail of image using the GetThumbnail method of the VintasoftImage class: Image thumbnail = VSImage.GetThumbnail(new Size(100, 100));
    • Draw thumbnail on the big "screenshot" image using the OverlayCommand class
Best regards, Alexander

Re: Saving content of a ThumbnailViewer as new big jpg?

Posted: Wed Aug 10, 2011 10:57 pm
by communi
Thanks, that works so far! :-)