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. |
|
|