ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Resize question

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
pierrotsc Posted - Feb 24 2012 : 18:46:50
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
4   L A T E S T    R E P L I E S    (Newest First)
pierrotsc Posted - Feb 25 2012 : 10:22:12
good idea..let me see if i can code that..thanks.
fab Posted - Feb 25 2012 : 08:00:57
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().
pierrotsc Posted - Feb 25 2012 : 06:38:01
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.
fab Posted - Feb 25 2012 : 01:31:05
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.