From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,533 Views)
Solution
Accepted by 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,507 Views)

Thank you.

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