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
 Gesture zoom percent too small
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

whisper1980

USA
86 Posts

Posted - May 07 2025 :  12:56:48  Show Profile  Reply
I'm not sure what I might be doing wrong, but touch Pan just seems to work without setting igPan or igoPanSIngleFinger; however, pinch zoom does not. It seems ImageEnView does not pinch zoom by default nor does it directly honor the Touch.InteractiveGestures for Zoom, and instead I have to do this:
ImageEnView1.Gestures.Zoom.Enabled := igZoom in ImageEnView1.Touch.InteractiveGestures;

While pinch zoom then works, it barely zooms in/out. Is there a way to increase the percentage so it maps more closely to how quickly the mouse wheel zooms in/out?

Again, it might be me in how I have the properties set, but I've tried various options. Even your demo Gestures is too small of a zoom IMHO.

ImageEn 14.0.1
Delphi 12.3

Eric

xequte

38978 Posts

Posted - May 07 2025 :  23:05:24  Show Profile  Reply
Hi Eric

That would be my expectation. Pan effects just mimic scrolling (all controls), but Zooming requires specific coding by the control (control specific).

If you disable the VCL Touch properties, and use use ImageEn's Gestures property, does it work better:

https://www.imageen.com/help/TIEView.Gestures.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

whisper1980

USA
86 Posts

Posted - May 08 2025 :  15:23:27  Show Profile  Reply
I turned off all properties under the Touch property and then added this:

ImageEnView1.Gestures.Zoom.Enabled := true;

But pinch zoom is still a slow process and doesn't seem to matter if it is a 640x480 or a 2560x1712 image.

Every time I pinch zoom (in or out), ImageEnView flashes animated zooming circles on screen (for lack of a better description). I might like to suppress that, but that's low priority at best.

Eric
Go to Top of Page

xequte

38978 Posts

Posted - May 08 2025 :  17:56:15  Show Profile  Reply
Hi Eric

I'll need to investigate the flashing issue. Regarding the zoom speed, have you changed the ImageEnView1.Gestures.Zoom options?

https://www.imageen.com/help/TIEGestureZoomOptions.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

whisper1980

USA
86 Posts

Posted - May 08 2025 :  18:16:58  Show Profile  Reply
Yes, I thought Multiplier would be the best bet, but it totally wacked pinch zoom. I also tried Inertia with no luck. Min, Max did not seem to be related... just limits things, likewise with ZoomAtPinch (want that). SnapDelta defaults to 5.0, I tried 30.0 and made no difference.

Eric
Go to Top of Page

xequte

38978 Posts

Posted - May 08 2025 :  19:17:29  Show Profile  Reply
Hmm. We'll need to investigate.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: