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
 How To Zoom In ,Out ?

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
whoson Posted - Jan 20 2012 : 22:30:57
Current I'm Use DelPhi7 and TImageEnView For Preview Image and Zomm in,Out By Function Click On Component.Then I Try To Make Button For Zoom In,Out But I'm No Idea.
Please Help,or Guide
Thank You
3   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Jan 21 2012 : 02:42:38
quote:
Now I Use Zoom():=120;,But It's Not Continue From Zoom By Click
Exp: First Zoom By Left Click Two Time Image will Zoom and then Click Button Zoom It will Reduce If Image > 120 ,How To to Get Value Last Image?


I think you should write your own code to do it, handing single and double clicks events.
Just consider that following code is valid:

// increment zoom by 10
ImageEnView.Zoom := ImageEnView.Zoom + 10;

and

// decrement zoom by 10
ImageEnView.Zoom := ImageEnView.Zoom - 10;

This should be enough to answer your question.
whoson Posted - Jan 21 2012 : 01:02:06
Thank you For Answer,But MY ImageEn Version ImageEnView1 still Don't have ZoomIn();,.ZoomOut(); Propertie ,Just have Zoom();.
Now I Use Zoom():=120;,But It's Not Continue From Zoom By Click
Exp: First Zoom By Left Click Two Time Image will Zoom and then Click Button Zoom It will Reduce If Image > 120 ,How To to Get Value Last Image?
Sorry For My English Grammar.Hope You Understand Above Thank you
fab Posted - Jan 21 2012 : 00:42:11
It is possible to change Zoom in code setting the property TImageEnView.Zoom. Example:

ImageEnView1.Zoom := 200; // 200% zoom

If you don't want to specify an absolute value, but just execute actions like Zoom-In or Zoom-Out, use:

// zoom in
ImageEnView1.ZoomIn();

...or...

// Zoom out
ImageEnView1.ZoomOut();

Also, you can zoom a specific area (centered at X,Y) of the image:

imageEnView1.ZoomAt(X, Y, Zoom);

There are other ways and methods related to zoom, please look at the documentation for more info.