LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ROI color when selected

I want to change the default gray color of the ROI to red or blue, when it is selected by the user for modifications. I have seen a similar post in NI forum, and the solution was given as 'change it at the image property node'...
I am using IMAQ constructROI for my application..please give me a detailed suggestion for acheiving this color change. (I useIMAQ windROIcolor for changing the color of the ROI when it is not active)
Thanx in advance,
Mathew
0 Kudos
Message 1 of 6
(4,065 Views)
I don't know exactly what you want to do, but if i understood you correctly, you want to change the color of the pixels which masks the ROI area?!
Therefore, look on the attached VI
 
If you want to change the background color of the selected ROI tool, e.g. line or rectangle, i think it's not possible if you work with the WindTools setup or the WndWindows...
Instead of this, you should use an image control, place it on the frontpanel and make a right click on it - scroll to Advanced - Customize, afterwards it's possible to change the background color of several selected tools. Save the customized control and work with it...
 
regards,
ThSa
0 Kudos
Message 2 of 6
(4,048 Views)

Sorry, i've forgotten to attach the vi

 

 

0 Kudos
Message 3 of 6
(4,046 Views)

hi,

thanx for the reply..

i am using the rotated rectange tool to set the ROI and then i am calculating the required x,y points in it. All my program is working fine with this ROI , then only problem is the GRAY color of the Rectangle when it is selected to alter the size or move. This makes it difficlut for the user to locate the exact cornet points on the GRAY SCALE image.

Is it by any chance possible to change the color of the rectangle (when selected) from gray to some other color??

 

thanx,

manu

0 Kudos
Message 4 of 6
(4,041 Views)

I've tried something without any results!

I think it's not possible, because the code is implemented within a DLL!

regards,

ThSa

0 Kudos
Message 5 of 6
(4,029 Views)
Have you tried the "Draw Greyed-Out Rectangle.vi" under the picture functions toolbox?  There is a color input which allows one to select the color of the "greyed-out" box (so it could be "blued-out" for example).

0 Kudos
Message 6 of 6
(4,025 Views)