Link to home
Start Free TrialLog in
Avatar of Hitesh Manglani
Hitesh ManglaniFlag for India

asked on

Plotting a line in VB.NET on a Picturebox image

i am plotting a line in VB.NET on a Picturebox image (which is a white image with some black lines). The problem is i need to know if my line passes through some line (obstacle) in the image. So at each pixel while drawing the line i will have to check the pixel at each point and whether the pixel is of the colour of the obstacle or not. how can i achieve this?
Any help will be appreciated
Regards
Hitesh
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

What other kind of "obstacles" are you talking about?  How are you drawing these?  Are you keeping track of them?

Bob
Avatar of Hitesh Manglani

ASKER

The obstacles are already present on the Picturebox image, i do not keep track of them.
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hello, Shadow :D

Bob
Hi i missed an important second point of my question, if the line i want to plot to connect two points meets an obstacle i want to deviate and draw another line not neccessarily linear or curve so that i can connect the two points without passing through an obstacle. Any idea on this.
It sounds like you are doing something like flowcharting.

Bob
you can say so or you can even say its something similar to a game :) but i hope my objective is clear, any solution to it or helpful tips?