LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Zoom in to mouse location by mouse wheel events

Solved!
Go to solution
Highlighted

Hi,

 

I am interested to zoom in to the mouse location pointed on an IMAQ image using the mouse wheel while I hold down the control key. Similar to how it is done in Windows.

Aware IMAQ ROI tool buttons have a zoom function that works exactly the way I want it to but I am interested to implement it through the mouse wheel event.

Any advise?

 

I am using LabVIEW 2013

 

- Sable

0 Kudos
Message 1 of 3
(109 Views)
Solution
Accepted by topic author Sable
05-18-2019 08:05 PM

his is pretty easy to do with Imaq images using property nodes and an event structure. Below is the block diagram. I am just zooming in and out by a factor two but you can obviously change the zooming factor the way you want.

 

I am attaching the VI but it is in LabVIEW 2016 but I suppose you can recreate the block diagram using the image below.

 

IMAQ Zoom Mouse Wheel_BD.png

Marc Dubois
HaroTek LLC
www.harotek.com

new_CLA_100x100.pngnew_CTD_100x100.pngnew_instructor_100x100.pngNI_Alliance_Partner_Logo_243x76.jpg

Message 2 of 3
(83 Views)

Thank you.

0 Kudos
Message 3 of 3
(57 Views)