VintaSoft Imaging .NET SDK and Plug-ins Discussions

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

Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

Saving content of a ThumbnailViewer as new big jpg?



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!


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


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

Post by communi »

Thanks, that works so far! :-)


Page 1 from 1: 1