07-18-2014 09:06 AM
I'm using the zoom factor property node and controlling the zoom factor with a slider. When the zoom slider is changed the image zooms in. My question is is there a way to zoom in on a specific part? Maybe a user selected part or something like that?
07-18-2014 09:08 AM - edited 07-18-2014 09:08 AM
Sure, you could use an invoke node to get the pixel coordinates, based on the mouse location. Then you can use the zoom factor, and then change the origin based on the mouse location, which is also a property of the picture box.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
07-18-2014 09:11 AM
Thanks for the reply Hooovahh,
What is the invoke node called to get the pixel coordinates?
07-18-2014 09:19 AM
I got my controls mixed up, the one I was thining of was for a graph. For a 2D Picture control there is a property node method called "Mouse" that returns coordinate information.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
07-18-2014 09:29 AM
Is there any examples of this?
07-22-2014 04:12 AM
Hi Paul,
There are some examples included within LabVIEW of using the Zoom Factor property node. I have attached an example below of how you would use this property node in conjunction with a 2d picture control.
Best Regards,
James Kent