ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Drawing Permanent Rectangular Area on a Picture

The main code is  “Rectangle_Delete_N”.

 

This code takes an entire image and based on our mouse drag, it can choose and display the area of interest. However, the red-dotted boundary that appears are temporary  and I could not figure out a way to make it permanently appear on the “picture” based on two options that I want to choose:

Temporary Boundary/Permanent Boundary

 Please let me know how it can done?

 

Regards,

DK

0 Kudos
Message 1 of 5
(3,189 Views)
Easiest: Put the image terminal inside the TRUE case which is inside the "picture:mouse move" event, right after the "draw rect" icon. Now it won't update in the other events. Try it!
 
(Also your subVI "proper img display" has about 90% too much code (and currently does not do anything useful). What is it supposed to do? The subVI "DIsplay coor..." does not need any sequence structure.) 😉

Message Edited by altenbach on 07-12-2006 06:00 PM

0 Kudos
Message 2 of 5
(3,190 Views)
Thanks
0 Kudos
Message 3 of 5
(3,171 Views)
Yes, I tried. It worked, but then I cant use the zooming and image stretch features etc.

Thanks,
DK
0 Kudos
Message 4 of 5
(3,164 Views)
Never mind, the code works now completely.

Thanks.

Dushyant
0 Kudos
Message 5 of 5
(3,156 Views)