LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I change the size of the point tool in an image

Solved!
Go to solution

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.

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

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

Download All
0 Kudos
Message 2 of 5
(2,884 Views)

see the revised front panel attachment...

0 Kudos
Message 3 of 5
(2,877 Views)

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?

0 Kudos
Message 4 of 5
(2,843 Views)
Solution
Accepted by topic author Lefi

There is no property for point tool size that I am aware of.


Dan

Message 5 of 5
(2,827 Views)