LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Picture box zoom

I am looking to perform a zoom operation on a 2d picture box indictator using the zoom factor property node. I have it currently working with a slider but what I want to do is use plus and minus buttons to zoom in and out. The zoom factor is in an event structure. The initial zoom factor is 0.4. Usual zoom factor like 2x, 4x, 8x, 16x. 

----------------------------------------------------------------------------------
I have not lost my mind, it's backed up on a disk somewhere
0 Kudos
Message 1 of 4
(2,089 Views)

You can create 2 different events for + and - buttons or a single one and depending on the button press you can change the value. So have the zoom factor in array and increase or decrease based on the button press. If you have 4 zoom in and 4 zoom out have an offset of 4 to start with. Is it what you are looking for?

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 4
(2,073 Views)

Yes that is what I am looking for. Have you got an example of this?

----------------------------------------------------------------------------------
I have not lost my mind, it's backed up on a disk somewhere
0 Kudos
Message 3 of 4
(2,068 Views)

Just a quick example. Remeber you have to set limits to handle the array Index.

-----

The best solution is the one you find it by yourself
Message 4 of 4
(2,061 Views)