LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Picture Control Zoom Factor

Hey all,

 

Does anyone know if there is a maximum zoom factor on the picture control and if so what it is? When I try to do 600% the picture disappears.

 

Thanks,

dnorman

0 Kudos
Message 1 of 6
(3,460 Views)

Hi there,

 

If you rightclick the property node, then click "Help For Zoom Factor" you can open an example for zooming pictures (bottom of the page). 

 

I opened this set the zoomfactor  to 10000% (i simply set data entry limits to default) and it scaled without problem.

 

Please try the example and try to find the differences between your code, also you may want to show the scrollbars.

 

regards, W

Message 2 of 6
(3,425 Views)

dnorman,

 

How many pixels does your image have? Does the 600% zoom result in 1 or less than one pixel in one dimension of the picture control?

 

I have not tried it, but this seems like a possibility.

 

Lynn

0 Kudos
Message 3 of 6
(3,422 Views)

The image is 2500 X 1500 pixels so that shouldn't be a problem. I checked out the example and see what you mean. I just wanted to make sure there wasn't a hard limit. I will look into my code to look for an error. I'm guessing it was some sort of mistake with the origin. Thanks for the help.

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

Hey,

 

When I change from the stock image to the one I am using the image disappears at 1239%. Which is what I was seeing in my VIs. I attached my image and the example VI.

Does anyone know why my image is behaving differently?

 

Thanks,

dnorman

Download All
0 Kudos
Message 5 of 6
(3,399 Views)

I've tried it and attached some screenshots that I took, it shows the aspect ratio changes when you go over a certain zoom factor (the red line is at the same angle in each view), I did not exactly determined it but it seems to start around 1200 as where you said the image dissapeared.

 

I have also seen the image "dissapear" when the scrollbars were not in the original positions, then if I returned to the top left corner and chaged the zoom by just 1 point it apeared again. Please try to set the zoom to 2000 and then set "new origin" to 10 (Horizontal) and 1440(Vertical).

I was able to see the I90 (indiana toll raod). When you then increase the horizontal origin to over 12, the screen blanks out.

 

I don't know what causes it but maybe you could try a square image to see wheter it behaves differently, also try changing the control size, as it also seems to have an effect. 

0 Kudos
Message 6 of 6
(3,374 Views)