CPC G06F 3/04883 (2013.01) | 19 Claims |
1. A handwriting forming method, comprising:
determining a group of plurality of trajectory points according to a plurality of sampling points on a writing path on a working surface of a touch device and obtaining trajectory information of each of the plurality of trajectory points, wherein the trajectory information comprises a coordinate, a flag bit and a pressure value, and the flag bit comprises data indicating whether a corresponding trajectory point is a pen drop point;
establishing a plurality of trajectory units in a raindrop shape corresponding to the plurality of trajectory points in one-to-one correspondence based on the trajectory information;
determining a connection mode between trajectory units corresponding to adjacent trajectory points based on the trajectory information; and
calculating connection points of the trajectory units according to the connection mode, and filling a polygon formed by the connection points of the trajectory units corresponding to the adjacent trajectory points, so as to form a handwriting for displaying,
wherein the establishing the plurality of trajectory units in the raindrop shape corresponding to the plurality of trajectory points in one-to-one correspondence based on the trajectory information comprises:
determining a first circle center coordinate of a first circle and a first radius of the first circle;
determining a second circle center coordinate of a second circle and a second radius of the second circle; and
filling the first circle and the second circle, and filling a polygon formed by common tangent points of the first circle and common tangent points of the second circle,
wherein the determining the connection mode between the trajectory units corresponding to the adjacent trajectory points based on the trajectory information comprises:
for trajectory points other than the pen drop point, calculating a slope of a connection line between a current trajectory point and a previous trajectory point; and
according to the slope, a coordinate of the current trajectory point, and a coordinate of the previous trajectory point, determining a connection mode adopted by a trajectory unit corresponding to the current trajectory point.
|