Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °
| |
|
|
You are not logged in.
Post a replyTopic review (newest first)
im working on a small image analysis program in VB.NET and would like some help in coding an algorithm that will take the starting and ending points of a line and scan each point in between for a black pixel. Code: e.Graphics.DrawLine(Pens.PaleGreen, 194, 43, 180, 47)
e.Graphics.DrawLine(Pens.PaleGreen, 176, 51, 167, 62)
e.Graphics.DrawLine(Pens.PaleGreen, 166, 67, 166, 82)
e.Graphics.DrawLine(Pens.PaleGreen, 167, 87, 175, 99)
e.Graphics.DrawLine(Pens.PaleGreen, 180, 102, 194, 107)
e.Graphics.DrawLine(Pens.PaleGreen, 199, 107, 212, 102)
e.Graphics.DrawLine(Pens.PaleGreen, 216, 100, 226, 87)
e.Graphics.DrawLine(Pens.PaleGreen, 227, 82, 227, 67)
e.Graphics.DrawLine(Pens.PaleGreen, 226, 63, 217, 51)
e.Graphics.DrawLine(Pens.PaleGreen, 214, 48, 199, 43)as you can see, it draws 10 lines that are slightly separated (will explain the separation part later) |