LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Zoom in to mouse location by mouse wheel events

Solved!
Go to solution

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
(2,539 Views)
Solution
Accepted by topic author Sable

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
Message 2 of 3
(2,513 Views)

Thank you.

0 Kudos
Message 3 of 3
(2,487 Views)