Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

logic for zoomimg the picture....

can any explain how to zoom the picture please

0 Kudos
Message 1 of 2
(5,251 Views)

Hello,

 

The Zoom Factor property node of the 2D Picture control can be used to resize the image.  For example, a zoom factor of .5 will cause the image to be displayed a half of its native resolution.

In order to find out the maximum zoom factor that can be used, you will need to divide both the height and width of the picture control by the height and width of the image, respectively.  The smallest of these two quotients is the largest zoom factor that can be used while still having the whole image visible.

Alternatively, one could programatically resize the control to display the full image at its native resolution using the Draw Area Size property.

Regards,

Sahil Singla
Applications Engineer | National Instruments

(Give Kudos to good Answers and Mark it as a Solution if your problem is Solved)
0 Kudos
Message 2 of 2
(5,244 Views)