Page 1 of 1

Auto-resize thumbnails

Posted: Thu Sep 19, 2013 12:47 pm
by AgfaDev
I wonder if there is a way to let the thumbnails be automatically resized depending on the size of the control.

I know how to set width and height of the thumbnails, but it would be nice that depending on the size of the control the thumbnails are scaled accordingly.

I'm replacing an old component which this does actually.
The form consists of 2 parts, a small strip at the left showing the thumbnails and at the right the viewer.
In between there is a splitter. So the user can drag the splitter left/right to enlarge the thumbnail control.
The thumbs need to be rescaled to get the max possible width.

Any suggestion?

Re: Auto-resize thumbnails

Posted: Thu Sep 19, 2013 2:57 pm
by Loïc
Hello,

We do not provide such feature but it should be easy to implement it by yourself. For example in the Resize event that modifies the ThumbnailEx size you can call the SetItemsSize() method with parameter proportionals to control size.

Kind regards,

Loïc

Re: Auto-resize thumbnails

Posted: Fri Sep 20, 2013 8:45 am
by AgfaDev
Thanks for your response.

Would this be a nice enhancement request to be implemented in a future version?
A automatic resizing option (based on the width/height of the control) would spare us the coding needed to get this and my guess is, when done in the component itself it will be more "efficient".