ImageEn Forum
ImageEn Forum
Profile | Join | Active Topics | Search | Forum FAQ
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn, Image Display and Editing Library
 ImageEn Support and Discussion Forum
 Resize question
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pierrotsc

USA
126 Posts

Posted - Feb 24 2012 :  18:46:50  Show Profile  Reply
I have an image loaded in imageen. When i maximize my program, i would like to keep the same zoom i had before.
Right now, i am getting a lot of empty space around the image.
Can it be done?
Thanks.
P

fab

1310 Posts

Posted - Feb 25 2012 :  01:31:05  Show Profile  Reply
The Zoom is untouched when the (TImageEnView) component changes its sizes. I suppose you Want to change the Zoom on resizing, to adapt the image size (Zoom) to the component size. Isn't it?
In this case there are several options, depending how you need to adapt image size to the component size.
The simplest is to set: ImageEnView.AutoFit=true.
Go to Top of Page

pierrotsc

USA
126 Posts

Posted - Feb 25 2012 :  06:38:01  Show Profile  Reply
Well, kind of. I guess if the image was filling the entire component, i would like to be the same when i maximize. So i would need to know if i had imageenview.fit before the resize to re apply it after. if not, then i do not want to do anything as you are telling me that the zoom ratio des not change.
If i set autofit to true, i think i cannot zoom anymore if i recall.
Maybe i am getting too complicated.
Go to Top of Page

fab

1310 Posts

Posted - Feb 25 2012 :  08:00:57  Show Profile  Reply
This is specific of application logic. Of course you can obtain the same effect of AutoFit calling Fit(). Maybe you should place a flag to know when the user changed zoom (and scroll?) manually, to avoid to call Fit().
Go to Top of Page

pierrotsc

USA
126 Posts

Posted - Feb 25 2012 :  10:22:12  Show Profile  Reply
good idea..let me see if i can code that..thanks.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: