Introduction - If you have any usage issues, please Google them yourself
The basic principle of Bresenham line algorithm is to take the sign of the integer parameter testing, integer values of parameters is proportional to the actual line between the two pixel offset. Bresenham midpoint line algorithm is based on the next point may occur at the midpoint of two points a straight line to determine the location of a point under the trade-off.