Hitesh Manglani
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
Any help will be appreciated
Regards
Hitesh
ASKER
The obstacles are already present on the Picturebox image, i do not keep track of them.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hello, Shadow :D
Bob
Bob
ASKER
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
Bob
ASKER
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?
Bob