LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2D Picture Box Zoom

I'm wondering is there a way to zoom in on labview's 2d picture box like the zoom function on the IMAQ Picture display?

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

The easy solution is the ZoomFactor property node of a picture control.

 

http://digital.ni.com/public.nsf/allkb/55EEBE3A1ECC38F58625765600796F1C

 

This doesn't actually change the picture data just gets closer to it.

0 Kudos
Message 2 of 6
(3,800 Views)

Thanks for your reply Hooovahh

 

Im using that bit of code already to resize my input image into my picture box control. I can't use IMAQ due to distribution of licences is there anyway around having a zoom in and a back to original image option with the mouse?

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

@PauldePaor wrote:

 

Im using that bit of code already to resize my input image into my picture box control. I can't use IMAQ due to distribution of licences is there anyway around having a zoom in and a back to original image option with the mouse?


I'm confused.  You say you already are doing this.  You say you can't use IMAQ.  This code doesn't use IMAQ.  And then you ask to be able to zoom in and out with the mouse.

 

Just use the code I linked to and control the zoom with the mouse.  Say with a vertical slider that goes from 0.2 to 10.

0 Kudos
Message 4 of 6
(3,795 Views)

How would I control the zoom with the slider?

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

You create a slider...then wire it to the ZoomFactor.

Message 6 of 6
(3,789 Views)