×

Picture processing method and apparatus for instant communication tool

  • US 8,856,251 B2
  • Filed: 01/05/2011
  • Issued: 10/07/2014
  • Est. Priority Date: 01/22/2010
  • Status: Active Grant
First Claim
Patent Images

1. A method for processing a picture for an instant messenger, wherein the method comprises the following steps of:

  • obtaining related information of an edit area captured by the instant messenger, wherein the related information comprises at least an abscissa range and an ordinate range;

    obtaining and recording position information including at least coordinates of a start cursor in real time after a start notification is received and before an end notification is received;

    obtaining position information of a current cursor in real time before the end notification is received;

    generating a line segment according to position information of current cursor, the recorded position information of a previous cursor and the related information of the edit area; and

    updating the recorded position information into the position information of the current cursor,wherein the step of generating the line segment comprises the steps of;

    determining a position relationship between the start cursor and the edit area according to coordinates of the start cursor and the related information;

    determining a position relationship between the current cursor and the edit area according to coordinates of the current cursor and the related information;

    if the position relationship between the current cursor and the edit area and the position relationship between the recorded cursor and the edit area reveal that both the current cursor and the recorded cursor are within the edit area, then generating a line segment between the recorded cursor and the current cursor;

    if the position relationship between the current cursor and the edit area is different from the position relationship between the recorded cursor and the edit area, then deciding a linear equation of each of the boundaries comprised in the edit area according to the related information;

    obtaining an intersection point between the line segment formed by the recorded cursor and the current cursor and each of the boundaries of the edit area according to the coordinates of the current cursor, the coordinates of the recorded cursor and the linear equation of each of the boundaries;

    if the position relationship between the current cursor and the edit area and the position relationship between the recorded cursor and the edit area reveal that the current cursor is outside the edit area and that the recorded cursor is within the edit area respectively, then generating a line segment between the intersection point and the recorded cursor; and

    if the position relationship between the current cursor and the edit area and the position relationship between the recorded cursor and the edit area reveal that the current cursor is within the edit area and that the recorded cursor is outside the edit area respectively, then generating a line segment between the intersection point and the current cursor.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×