From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Draw multiple Lines at x interval across a bmp image?

Solved!
Go to solution

Hi,

 

I'm trying to automatically draw some lines across a .bmp image at regular intervals.

 

I have looked at using the Draw Line and Draw Multiple Lines.vi but it only has settings for the end point so all lines originate from co-ordinates 0, 0.

 

What I would like to do, is if the image is 200x200 and the spacing is every 10px, it will draw a line on the tenth pixel, then every ten after until the end of the image.

 

What is the best way to approach this in LabVIEW 2010?

 

 

 

 

 

 

0 Kudos
Message 1 of 2
(1,891 Views)
Solution
Accepted by topic author Aidan85

For each line, you would first use "move pen" to the start location, then "draw line" to the other end. Repeat.

0 Kudos
Message 2 of 2
(1,883 Views)