NI Home > Community > NI Discussion Forums
Reply
Member
dzwong
Posts: 2
0 Kudos

multiple circles on a picture

Hello,

I am trying to develop a Labview program that allows users to draw multiple circles on a picture. I use the built-in Draw Circle by Radius.Vi. However, it does not allow users to adjust the location and radius of the circle once it is drawn. Is there a way to work around it? I am hoping to do it without the Vision Module. Thanks for your help.

Cheers,

DZ

Knight of NI
RavensFan
Posts: 15,081

Re: multiple circles on a picture

It is designed to programmatically draw a circle.  Are you saying you want to draw it interactively?  You will have to program your VI to handle some mouse events.

 

Then you will need to keep your old picture and keep drawing a new circle into the old picture on every event of the mouse until the user somehow ends the drawing operation.  Then you keep the new picture and use that for the next operations.

Member
dzwong
Posts: 2
0 Kudos

Re: multiple circles on a picture

Is there an example to show how it is done, to your knowledge? Thanks.

Knight of NI
RavensFan
Posts: 15,081
0 Kudos

Re: multiple circles on a picture

No example that I know of.

Active Participant
stevem181
Posts: 255

Re: multiple circles on a picture

Hi DZ,

 

Attached is an example that might help get you started. I modified one of Nationals vis so that it draws circles that you can resize when they are created. Note that the example just does a small subset of what you need but it does show some techniques that will be useful.

 

steve

--------------------------------------------------------------------------------------------------------------------------
Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
question. Give "Kudos" to replies that help.
--------------------------------------------------------------------------------------------------------------------------