cancel
Showing results for 
Search instead for 
Did you mean: 

Picture Control Zoom Factor

dnorman
Member

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

5 REPLIES 5
WatWork
Member

Re: Picture Control Zoom Factor

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

johnsold
Knight of NI

Re: Picture Control Zoom Factor

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

dnorman
Member

Re: Picture Control Zoom Factor

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.

dnorman
Member

Re: Picture Control Zoom Factor

Message contains an attachment

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

WatWork
Member

Re: Picture Control Zoom Factor

Message contains an attachment

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.