LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove a point in a picture

I want to draw a point, move one step, remove the old one, draw another point.

 

May I know how to remove a point in a picture.

 

Thanks,

0 Kudos
Message 1 of 7
(3,347 Views)

You redraw the picture without the point.

 

If that does not help you then post some code with suppoting image and share some more details with us.

 

THank you,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 7
(3,337 Views)

Hi alex,

store the part of your image which you want to change before you draw onto it. If you want to clean it, then you redraw the old part.

May be it's also a solution for you to use your image as a background in a graph and use corsurs to draw your point.

 

Mike

Message 3 of 7
(3,336 Views)

Here ya go.

Message Edited by for(imstuck) on 05-26-2010 08:46 AM
0 Kudos
Message 4 of 7
(3,326 Views)

I made that slightly more complicated than need be... You can get rid of the shift register and just wire the picture from the flattened pixmap vi straight in to the draw point vi. Then, get rid of the concatenate strings. Something more like this.

 

 

 

Message Edited by for(imstuck) on 05-26-2010 09:22 AM
0 Kudos
Message 5 of 7
(3,306 Views)

What I do is mostly like for(imstuck), the difference is

 

1. start from an empty picture constant.

 

2. In the loop, first draw a white point, try to cover original one, then draw a new point with red color with moving one step.

 

But when I run the program, it keeps blinking. So want to find a better way to remove the old one.

Also, many points will move on the picture finally.

Thanks.

0 Kudos
Message 6 of 7
(3,279 Views)

alex. wrote:

What I do is mostly like for(imstuck), the difference is

 

1. start from an empty picture constant.

 

2. In the loop, first draw a white point, try to cover original one, then draw a new point with red color with moving one step.

 

But when I run the program, it keeps blinking. So want to find a better way to remove the old one.

Also, many points will move on the picture finally.

Thanks.


Right-click the picture and make sure the option "Erase first" is not enabled.

 

Also throttle the updates of the picture. A human can barely decern a screen update faser than 30 Hz. Updating more often will be a waste of CPU and could actually backup the graphics display unpdates.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 7 of 7
(3,253 Views)