02-15-2011 10:56 AM
Dear LabVIEW fans
I want to have a very large "Point Tool" in an image display, actually it should cover the whole image as a crosshair. Does anyone know how do this? I've searched among the long list of image properties, but haven't found anything useful.
Solved! Go to Solution.
02-15-2011 03:01 PM
Lefi,
You can use the Draw Line.vi to create a series of lines corresponding to the crosshairs. The line style and thickness can be changed using the "pen" input the vi. I tetsed this out a bit and attached a screenshot of the front panel and block diagram. I got it pretty close but an extra line seems to be there and i'm not sure why. I'm sure you can figure that part out:)
The event case captures a user mouse move event for the picture indicator, the coordinates of the cursor are in the event node but need to be converted to be relative to the picture indicator, therefore the subtraction (this may be where I was off a bit). The new coords are input to the Move Pen.vi in order to set the current pen position to the mouse position. Thsi way the center of the crosshairs will be on the cursor.
Hope this works for you.
Dan
02-15-2011 03:03 PM
see the revised front panel attachment...
02-18-2011 07:53 AM
Dear DBerry
Thanks for the suggestion; I will have closer look at it. What I was hoping for was some kind of size property for the "Point Tool". Isn't there anything like that?
02-18-2011 12:57 PM
There is no property for point tool size that I am aware of.
Dan