Thanks for sharing.
I would suggest adding a line thickness option.
Comment only
23 Feb 2008
Connect two pixels
Draw a line between two pixels with any grayscale in any image.
Jamie Schirf
Thanks for sharing. This was just what I needed for a task.
5
31 Jul 2007
Connect two pixels
Draw a line between two pixels with any grayscale in any image.
Graham Cranston
input coordinates X and Y are implemented inverted. That is, the coordinates given as X0 and X1 are used as the starting and ending ROW in the matrix, and vice versa. A simple find replace fixed the problem.
4
22 Jun 2007
Connect two pixels
Draw a line between two pixels with any grayscale in any image.
Rajesh Govind
I agree there exists jaggedness while it traces the line, but otherwise, I like the implementation :) Good work appreciated .. this saved my time as well ! Thanks a ton !
4
27 Apr 2007
Connect two pixels
Draw a line between two pixels with any grayscale in any image.
cano lee
interesting, but could u disclose more technical details?
Comment only