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

 

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

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How To Zoom In ,Out ?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

whoson

Thailand
2 Posts

Posted - Jan 20 2012 :  22:30:57  Show Profile  Reply
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

fab

1310 Posts

Posted - Jan 21 2012 :  00:42:11  Show Profile  Reply
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.
Go to Top of Page

whoson

Thailand
2 Posts

Posted - Jan 21 2012 :  01:02:06  Show Profile  Reply
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
Go to Top of Page

fab

1310 Posts

Posted - Jan 21 2012 :  02:42:38  Show Profile  Reply
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: