US 9,811,925 B2 | ||
Method and apparatus to render lines on a display screen | ||
Michel Georges Stella, Dallas, TX (US) | ||
Assigned to TEXAS INSTRUMENTS INCORPORATED, Dallas, TX (US) | ||
Filed by Texas Instruments Incorporated, Dallas, TX (US) | ||
Filed on Sep. 28, 2015, as Appl. No. 14/867,449. | ||
Claims priority of provisional application 62/064,066, filed on Oct. 15, 2014. | ||
Prior Publication US 2016/0110894 A1, Apr. 21, 2016 | ||
Int. Cl. G06T 11/20 (2006.01); G06F 3/0484 (2013.01); G06F 3/0488 (2013.01) |
CPC G06T 11/203 (2013.01) [G06F 3/04845 (2013.01); G06F 3/04883 (2013.01)] | 20 Claims |
1. A method of rendering lines on a display screen, the method comprising:
using a processor, determining a first angle corresponding to a hand drawn line created by a user on the display screen;
using the processor, rendering a new line on the display screen to represent the hand drawn line created by the user;
using the processor, for one or more existing lines, computing a line to line angle for each of the one or more existing lines,
the line to line angle is a difference between the first angle and an angle of the existing line;
using the processor, for the one or more existing lines, determining a smallest parallel angle as the line to line angle having
a smallest absolute value;
using the processor, for the one or more existing lines, determining a smallest perpendicular angle as the line to line angle
offset by 90 degrees having a smallest absolute value;
using the processor, comparing the smallest parallel angle to the smallest perpendicular angle; and
using the processor, if the smallest parallel angle is less than the smallest perpendicular angle, selectively rendering the
new line on the display screen parallel to the existing line corresponding to the smallest parallel angle.
|