Saving content of a ThumbnailViewer as new big jpg?

Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.

Moderator: Alex

Post Reply
communi
Posts: 12
Joined: Wed Jul 13, 2011 11:07 pm

Saving content of a ThumbnailViewer as new big jpg?

Post 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!
Alex
Site Admin
Posts: 2305
Joined: Thu Jul 10, 2008 2:21 pm

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

Post 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
communi
Posts: 12
Joined: Wed Jul 13, 2011 11:07 pm

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

Post by communi »

Thanks, that works so far! :-)
Post Reply