Introduction - If you have any usage issues, please Google them yourself
Bresenham algorithm implemented by the dotted line method and draw a straight line, and draw a grid chart to determine the coordinates of the dialog box, enter the starting end is within a given range. If you draw a line in the range, in units of pixels RBI, intuitive operating principle see Bresenham algorithm and the dotted line method.