LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

zoom in/out on a picture control and draw

Hi,
I want to build a VI that uses the picture control. Then I want to be able to zoom in/out on that picture control. When the picture control is "zoomed in" I want to be able to draw a line/point and, after I zoom out hte picture to look as if I have drawn in it without zooming. Is this possible?
Any help wellcome.
Thank you
0 Kudos
Message 1 of 3
(2,972 Views)
This is possible, but you won't like the amount of work you will have to do in order to perform this seemingly simple operation.

You have to do everything you described behind the scenes, and manually. You have to store the image. The "zoom" would merely be increasing the size of the pixels without changing the size of the control. Drawing would be done by using "pixels" that were the "new" size. The image would then be 'unzoomed' with the new pixels appearing as you indicated.

This sounds to me like a very daunting task.

There is an alternative, but it may not work either. If you have IMAQ, there are tools to do about what you need already in place, but I don't know if they will work for you.
Message 2 of 3
(2,972 Views)
Thank you for your support!
If it isn't too much trouble, would you be so kind as to post an example regarding a "zoom increasing the size of the pixels"? I think it is exasctly what I need.
thank you
0 Kudos
Message 3 of 3
(2,972 Views)