CN102663667A - Storage method and display method for handwritten content on touch screen, terminal equipment - Google Patents

Storage method and display method for handwritten content on touch screen, terminal equipment Download PDF

Info

Publication number
CN102663667A
CN102663667A CN2012100856520A CN201210085652A CN102663667A CN 102663667 A CN102663667 A CN 102663667A CN 2012100856520 A CN2012100856520 A CN 2012100856520A CN 201210085652 A CN201210085652 A CN 201210085652A CN 102663667 A CN102663667 A CN 102663667A
Authority
CN
China
Prior art keywords
incident
original
data
handwritten content
mark
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012100856520A
Other languages
Chinese (zh)
Other versions
CN102663667B (en
Inventor
朱皓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210085652.0A priority Critical patent/CN102663667B/en
Publication of CN102663667A publication Critical patent/CN102663667A/en
Priority to PCT/CN2013/073330 priority patent/WO2013143471A1/en
Application granted granted Critical
Publication of CN102663667B publication Critical patent/CN102663667B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/32Digital ink
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/24Aligning, centring, orientation detection or correction of the image

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a storage method and a display method for a handwritten content on a touch screen, terminal equipment. The storage method comprises the following steps: obtaining a painting event corresponding to a handwritten content, a painting curve segment corresponding to the handwritten content, user information and original painting dimension information; storing a mark of the painting event, painting event data and data of the painting curve segment to a painting unit array; and generating and storing a binary file including the user information, the original painting dimension information and the painting unit array. Besides, the display method comprises: reading the mark of the painting event corresponding to the handwritten content, the painting event data and the data of the painting curve segment corresponding to the handwritten content from the painting unit array; and drawing the handwritten content according to the mark of the painting mark, the painting event data and the painting curve segment data. According to the storage method and the display method for a handwritten content on a touch screen, terminal equipment, disk space and a network flow can be saved.

Description

The storage means of touch screen hand-writing content, methods of exhibiting and terminal device
Technical field
The present invention relates to the communication technology, relate in particular to a kind of storage means, methods of exhibiting and terminal device of touch screen hand-writing content.
Background technology
Electronic product and little letter, the rice that possesses the touch-screen input capability along with smart mobile phone, panel computer etc. such as chats at instant messaging (Instant Messaging; Abbreviation IM) fast development of software, more and more users use above-mentioned electronic product to adopt the handwriting input mode to carry out instant messaging through instant communication software.
In above-mentioned instant messaging process; The transmit leg user is content such as hand-written tablet pattern or literal on the touch-screen of sending side terminal equipment; Sending side terminal equipment is picture with the content stores of handwriting input earlier; Form with picture sends to receiving side terminal equipment with this content then, and receiving side terminal equipment shows take over party user with the form of picture with it.
Because the shared storage space of image data is bigger, the picture size of one 10 word 240*84 pixels is about 3Kb.Therefore adopt storage, transmission and the methods of exhibiting of above-mentioned existing handwriting input content, on terminal device, need take a large amount of disk spaces, and in transmission course, need take a large amount of network traffics.
Summary of the invention
First aspect of the present invention provides a kind of storage means and methods of exhibiting of touch screen hand-writing content, in order to solve defective of the prior art, practices thrift disk space and network traffics.
Another aspect of the present invention provides a kind of terminal device, in order to solve defective of the prior art, practices thrift disk space and network traffics.
First aspect of the present invention provides a kind of storage means of touch screen hand-writing content, comprising:
Obtain the corresponding drawing incident of handwritten content, drawing curved segments, user profile and original drawing dimension information;
The data of the mark of said drawing incident, said drawing incident and the data storage of said drawing curved segments are arrived the drawing cell array; The mark of said drawing incident is used to indicate the type of said drawing incident, and the data of said drawing incident are the corresponding concrete numerical value of content of said drawing incident;
Generate and store binary file, said binary file comprises: said user profile, said original drawing dimension information and said drawing cell array.
Another aspect of the present invention provides a kind of methods of exhibiting of touch screen hand-writing content, comprising:
Obtain original drawing dimension information and drawing cell array;
From said drawing cell array, read the data of the corresponding drawing curved segments of data and the said handwritten content of the mark of the corresponding drawing incident of handwritten content, said drawing incident; The mark of said drawing incident is used to indicate the type of said drawing incident, and the data of said drawing incident are the corresponding concrete numerical value of content of said drawing incident;
Draw said handwritten content according to the data of the mark of said drawing incident, said drawing incident and the data of said drawing curved segments.
Another aspect of the present invention provides a kind of terminal device, comprising:
The handwritten content processing unit is used to obtain the corresponding drawing incident of handwritten content, drawing curved segments, user profile and original drawing dimension information;
The array manipulation unit; Be used for the data of the mark of said drawing incident, said drawing incident and the data storage of said drawing curved segments are arrived the drawing cell array; The mark of said drawing incident is used to indicate the type of said drawing incident, and the data of said drawing incident are the corresponding concrete numerical value of content of said drawing incident;
The file processing unit is used to generate and store binary file, and said binary file comprises: said user profile, said original drawing dimension information and said drawing cell array.
Another aspect of the present invention provides a kind of terminal device, comprising:
Information receiving unit is used to obtain original drawing dimension information and drawing cell array;
Data-reading unit; Be used for reading the data of the corresponding drawing curved segments of data and the said handwritten content of the mark of the corresponding drawing incident of handwritten content, said drawing incident from said drawing cell array; The mark of said drawing incident is used to indicate the type of said drawing incident, and the data of said drawing incident are the corresponding concrete numerical value of content of said drawing incident;
The drawing unit is used for the data of the mark according to said drawing incident, said drawing incident and the data of said drawing curved segments and draws said handwritten content.
Visible according to the foregoing invention content; From handwritten content, extract the data of drawing incident and drawing curved segments; Above-mentioned incident and data recording in array, and are generated binary file and storage according to this array, compare with the mode of existing employing picture file storage handwritten content; Be significantly less than the shared storage space of picture owing to carry the shared storage space of binary file of the array formation of identical handwritten content, therefore can practice thrift disk space.And, adopt said method storage handwritten content, when the content that will store at needs is sent, can save a large amount of network traffics.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the process flow diagram of storage means of the touch screen hand-writing content of the embodiment of the invention one;
Fig. 2 is the process flow diagram of storage means of the touch screen hand-writing content of the embodiment of the invention two;
Fig. 3 is the process flow diagram of methods of exhibiting of the touch screen hand-writing content of the embodiment of the invention three;
Fig. 4 is the process flow diagram of methods of exhibiting of the touch screen hand-writing content of the embodiment of the invention four;
Fig. 5 is the structural representation of the terminal device of the embodiment of the invention five;
Fig. 6 is the structural representation of the terminal device of the embodiment of the invention six.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Following each embodiment of the present invention is applied in the instant messaging network architecture; Comprise in this network architecture: sending side terminal equipment, receiving side terminal equipment and the IM server that connects sending side terminal equipment and receiving side terminal equipment are transmitted to receiving side terminal equipment by the IM server with the handwriting input content of receiving side terminal equipment.The storage means of the touch screen hand-writing content in following examples is realized by sending side terminal equipment, specifically can realize through software module; The methods of exhibiting of the touch screen hand-writing content in following examples is realized by receiving side terminal equipment, specifically can realize through software module.
Fig. 1 is the process flow diagram of storage means of the touch screen hand-writing content of the embodiment of the invention one.As shown in Figure 1, this method comprises following process.
Step 101: obtain the corresponding drawing incident of handwritten content, drawing curved segments, user profile and original drawing dimension information.
In a kind of preferred implementation of the present invention, this drawing curved segments specifically can adopt the Bezier line segment.
Step 102: the data of the mark of the incident of will painting, drawing incident and the data storage of drawing curved segments are to the drawing cell array.
In this step, the mark of drawing incident is used to indicate the type of drawing incident, the variety of event in the sign painting process; The data of drawing incident are the corresponding concrete numerical value of content of above-mentioned incident.For example, the drawing event flag is the mark of brush color incident, and the data of the drawing incident that it is corresponding are the corresponding RGB color code of brush color; The drawing event flag is the mark of starting point incident, and the data of the drawing incident that it is corresponding are the x coordinate figure and the y coordinate figure of starting point.In a kind of preferred implementation, the mark of drawing incident can comprise: the mark of the mark of brush color incident, paintbrush width incident, the mark of background color incident, the mark of starting point incident and the mark of terminating point incident etc.Correspondingly, the data of drawing incident can comprise: the x coordinate figure of the RGB color code of the RGB color code that brush color is corresponding, paintbrush width corresponding pixel value, background color correspondence, the x coordinate figure of starting point and y coordinate figure, terminating point and y coordinate figure etc.
Step 103: generate and store binary file.
In this step, this binary file comprises: user profile, original drawing dimension information and drawing cell array.
In the embodiment of the invention one; From handwritten content, extract the data of drawing incident and drawing curved segments; Above-mentioned incident and data recording in array, and are generated binary file and storage according to this array, compare with the mode of existing employing picture file storage handwritten content; Be significantly less than the shared storage space of picture owing to carry the shared storage space of binary file of the array formation of identical handwritten content, therefore can practice thrift disk space.And, adopt said method storage handwritten content, when the content that will store at needs sends to the take over party, can save a large amount of network traffics.
Fig. 2 is the process flow diagram of storage means of the touch screen hand-writing content of the embodiment of the invention two.In the embodiment of the invention two, the drawing curved segments specifically adopts the Bezier line segment.As shown in Figure 2, this method comprises following process.
Step 201: sending side terminal equipment obtains handwritten content corresponding drawing incident, Bezier line segment, user profile and original drawing dimension information.
In each embodiment of the present invention, represent horizontal ordinate with x, represent ordinate with y.
Particularly, user profile can comprise: the length information and the ID array of User Identity (Identity is called for short ID).Storing ID in this ID array.Original drawing dimension information can comprise: the maximum horizontal ordinate of the minimum ordinate of the minimum horizontal ordinate of the maximum ordinate of the maximum horizontal ordinate of original drawing paper, original drawing paper, original handwritten content, original handwritten content, original handwritten content and the maximum ordinate of original handwritten content.
In this step, sending side terminal equipment can obtain the maximum horizontal ordinate of user profile and original drawing paper and the maximum ordinate of original drawing paper after start.
When the user began handwriting input, sending side terminal equipment obtained handwritten content corresponding drawing incident, Bezier line segment.For a handwriting input; Comprise many Bezier line segments; After whenever obtaining a new Bezier line segment; According to the current whole Bezier line segments that got access to, upgrade the maximum horizontal ordinate of the minimum ordinate of the minimum horizontal ordinate of original handwritten content, original handwritten content, original handwritten content and the maximum ordinate of original handwritten content.
Particularly, the drawing incident specifically can include but not limited to the incident of following kind: brush color incident, paintbrush width incident, background color incident, starting point incident and terminating point incident.
Particularly, in a kind of preferred implementation, the method for obtaining the brush color incident is:
Figure BDA0000147821260000051
Wherein, color is the RGB color code of new brush color.
Particularly, in a kind of preferred implementation, the method for obtaining paintbrush width incident is:
Figure BDA0000147821260000052
Wherein, size is the pixel value of new paintbrush width.
Particularly, in a kind of preferred implementation, the method for obtaining the background color incident is:
Figure BDA0000147821260000061
Wherein, color is the RGB color code of new background color.
Particularly, in a kind of preferred implementation, the method for obtaining the starting point incident is:
Figure BDA0000147821260000062
Wherein, bx is the x coordinate of starting point, and by is the y coordinate of starting point.
Particularly, in a kind of preferred implementation, the method for obtaining the terminating point incident is:
Figure BDA0000147821260000063
Wherein, ex is the x coordinate of terminating point, and ey is the y coordinate of terminating point.
Particularly, in a kind of preferred implementation, the method for obtaining the Bezier line segment is:
Wherein, eX is the x coordinate of double next the line segment starting point of line segment terminating point for this reason, and eY is the y coordinate of double next the line segment starting point of line segment terminating point for this reason.
Step 202: sending side terminal equipment will be painted the data storage of data and Bezier line segment of mark, drawing incident of incident to the drawing cell array.
In this step, this drawing cell array is used to store the mark of drawing incident, the data of drawing incident and the data of Bezier line segment.Different types of incident for comprising in the drawing incident adopts different markers respectively, and the mark of the incident of then painting can comprise: the mark of the mark of brush color incident, paintbrush width incident, the mark of background color incident, the mark of starting point incident and the mark of terminating point incident.For example; Preferred embodiment based on 32-bit operating system is: adopt greater than 999999999 integer as the variety of event mark; The starting point incident be labeled as 1000000000, the terminating point incident be labeled as 1000000001, the brush color incident be labeled as 1000000002; Paintbrush width incident be labeled as 1000000003, the background color incident be labeled as 1000000004.
In this step, sending side terminal equipment carries out initialization to above-mentioned each drawing incident, through initialization procedure, defines the corresponding mark of above-mentioned each drawing incident.With above-mentioned embodiment based on 32-bit operating system is example, and sending side terminal equipment carries out the initialized concrete implementation method of drawing incident and is:
Public final static int START_DRAW=1000000000; // the starting point incident is set be labeled as 1000000000.
Public final static int END_DRAW=1000000001; // the terminating point incident is set be labeled as 1000000001.
Public final static int SET_STROKE_COLOR=1000000002; // the brush color incident is set be labeled as 1000000002.
Public final static int SET_STROKE_WIDTH=1000000003; // paintbrush width incident is set be labeled as 1000000003.
Public final static int SET_BACK_COLOR=1000000004; // the background colour incident is set be labeled as 1000000004.
In this step, sending side terminal equipment also carries out initialization to the drawing cell array.This drawing cell array adopts integer (int) array, and the cell array of should painting abbreviates DU (Draw Unit) as.In this step, DU who is used to write down current handwritten content of initialization.Particularly, in a kind of preferred implementation, the method for initialization DU is:
Int cDUlength=102400; // initialization array size
Int cDUsize=0; // current record position
Int [] currentDU=new int [cDUlength]; // initialization array
Above-mentioned to the drawing incident carry out initialized process and execution sequence that DU is carried out between the initialized process unrestricted, can carry out earlier wherein any one or the two carry out simultaneously.
After the initialization of accomplishing DU, with the data storage of the data of the mark of above-mentioned drawing incident, drawing incident and Bezier line segment in DU.
Particularly, the data of drawing incident comprise: the x coordinate figure of the RGB color code of the RGB color code that brush color is corresponding, paintbrush width corresponding pixel value, background color correspondence, the x coordinate figure of starting point and y coordinate figure, terminating point and y coordinate figure etc.When the data of mark from the drawing incident to DU that store and drawing incident, in DU the preset respectively different position of data of various different types of drawing incidents.In a kind of preferred implementation, the predeterminated position of the RGB color code that brush color is corresponding is positioned at back of mark of brush color incident; The predeterminated position of paintbrush width corresponding pixel value is positioned at back of mark of paintbrush width incident; The predeterminated position of the RGB color code that background color is corresponding is positioned at back of mark of background color incident; The predeterminated position of the x coordinate figure of starting point is positioned at back of mark of starting point incident, and the predeterminated position of the y coordinate figure of starting point is positioned at second after the mark of starting point incident; The predeterminated position of the x coordinate figure of terminating point is positioned at back of mark of terminating point incident, and the predeterminated position of the y coordinate figure of terminating point is positioned at second after the mark of terminating point incident.
In handwritten content, can comprise one or more than one Bezier line segment, in DU, write down the data of each bar Bezier line segment respectively.Still with above-mentioned be example based on 32-bit operating system, the value of the data of Bezier line segment is all less than 1000000000.
Step 203: sending side terminal equipment generates and stores binary file.
In this step, this binary file comprises: user profile, original drawing dimension information and drawing cell array.Particularly, user profile can comprise: the length information and the ID array of User Identity (Identity is called for short ID).Original drawing dimension information can comprise: the maximum horizontal ordinate of the minimum ordinate of the minimum horizontal ordinate of the maximum ordinate of the maximum horizontal ordinate of original drawing paper, original drawing paper, original handwritten content, original handwritten content, original handwritten content and the maximum ordinate of original handwritten content.This drawing cell array is being stored the mark of the incident of drawing, the data of drawing incident and the data of Bezier line segment for the drawing cell array after handling through above-mentioned steps 202 in this array.
Table 1 is the binary file format table.Particularly, in a kind of preferred implementation, binary file can adopt the form of record in the table 1.Store with binary file, file the 1st segment length is 4 bytes (byte), is used for the length information of recording user ID; File the 2nd segment length is the length of ID, is used for recording user ID; The length of each section is 4 bytes in the 3rd section to the 8th section of the file, writes down the maximum horizontal ordinate of the minimum ordinate of the minimum horizontal ordinate of the maximum ordinate of the maximum horizontal ordinate of original drawing paper, original drawing paper, original handwritten content, original handwritten content, original handwritten content and the maximum ordinate of original handwritten content respectively; The 9th section of file begins to be used to store above-mentioned drawing cell array DU, with the mode of 1int=4byte, the item among the DU is converted into byte successively writes binary file, finishes until the item among the DU is all stored.
Table 1. binary file format table
Figure BDA0000147821260000091
Step 204: sending side terminal equipment sends binary file to receiving side terminal equipment.
In the embodiment of the invention two, specifically can adopt two kinds of embodiments, make sending side terminal equipment send handwritten content, i.e. mode one and mode two to receiving side terminal equipment.Particularly, in step 204, employing mode one after execution of step 203, has been stored binary file, and sending side terminal equipment sends this binary file to receiving side terminal equipment in step 204.
Mode one is specially: sending side terminal equipment sends the handwrite messages message to receiving side terminal equipment, carries the type of message sign and the binary file of binary file in this handwrite messages message.
Mode one is applicable to the application scenario of common handwrite messages, transmits this binary file with file mode.This handwrite messages message can adopt scalable message to send with there being agreement (Extensible Messagingand Presence Protocol is called for short XMPP) agreement.An instantiation of the handwrite messages message of mode one is:
<message?id=″xc3S4-42″to=″julietcn.hotalk.com″from=″romeocn.hotalk.com/android″type=″chat″><body/><thread>DAooyN</thread><data?xmlns=″urn:xmpp:bob″><item><bob?cid=″2263″max-age=″0″type=″application/du″></bob></item></data></message>
Wherein, type=" application/du " is the type of message sign of binary file, adopts specific type of message " application/du " to identify this binary file.
Step 204 is the optional step of the embodiment of the invention two.The corresponding aforesaid way one of the application scenario of the common handwrite messages that step 204 is described.Also there is the application scenario of Sharing Whiteboard message in the application scenario of the common handwrite messages of describing except above-mentioned steps 204.In the application scenario of Sharing Whiteboard message, employing mode two substitutes aforesaid way one, sends handwritten content to the take over party.Situation for employing mode two; After step 202; Carry out following steps: sending side terminal equipment sends the Sharing Whiteboard message packet to receiving side terminal equipment, carries the type of message sign and the binary code stream of binary code stream in this Sharing Whiteboard message packet.
More than to send the execution sequence of step and above-mentioned steps 203 of Sharing Whiteboard message packet to receiving side terminal equipment unrestricted, can carry out simultaneously.Under situation from the Sharing Whiteboard message packet to receiving side terminal equipment that carried out above-mentioned step of sending, no longer carry out above-mentioned steps 204.Mode two is applicable to the application scenario of Sharing Whiteboard message, transmits binary code stream with the text message mode.This Sharing Whiteboard message packet can adopt the XMPP agreement to send.An instantiation of the Sharing Whiteboard message packet of mode two is:
<message?id=″xc3S4-42″to=″julietcn.hotalk.com″from=″romeocn.hotalk.com/android″type=″draw″><body>G*&TY3*Teg2Jo</body><thread>DAooyN</thread></message>
Wherein, type=" draw " is the type of message sign of binary code stream, adopts specific type of message " draw " to identify this binary code stream.
Aforesaid way one adopts common handwrite messages mode, after content input that the transmit leg user will send finishes, sends to the take over party again; Mode two adopts the Sharing Whiteboard message modes, when the transmit leg user carries out handwriting input, according to certain predeterminated frequency, transmit leg user's handwritten content is sent to the take over party immediately.For example, through handwriting input and transmission " hello " printed words.If employing mode one; Adopt the content of the method storage user handwriting input of above-mentioned steps 201 to step 203; After two words of user's handwriting input " hello " are all accomplished, generate above-mentioned binary file and send to the take over party according to the handwritten content that comprises " hello " two words.If employing mode two; For example will send frequency configuration is 1 second; Then in user's handwriting input; Whenever adopted the method for above-mentioned steps 201 to step 202 at a distance from 1 second, obtain the content of the handwriting input of user in this 1 second, the drawing cell array that foregoing is corresponding adopts binary code stream to send to the take over party.
In the embodiment of the invention two; Adopt the array mode that handwritten content is stored and transmitted; Compare with the mode of existing employing picture file storage handwritten content; The binary file or the shared storage space of scale-of-two array that carry the array formation of identical handwritten content are significantly less than the shared storage space of picture, therefore can practice thrift disk space, and when transmission, can save a large amount of network traffics.
Fig. 3 is the process flow diagram of methods of exhibiting of the touch screen hand-writing content of the embodiment of the invention three.As shown in Figure 3, this method comprises following process.
Step 301: obtain original drawing dimension information and drawing cell array.
Step 302: read the data of the corresponding drawing curved segments of data and the handwritten content of mark, drawing incident of the corresponding drawing incident of handwritten content the cell array from drawing.
In this step, the mark of drawing incident is used to indicate the type of drawing incident, the variety of event in the sign painting process; The data of drawing incident are the corresponding concrete numerical value of content of above-mentioned incident.In a kind of preferred implementation of the present invention, this drawing curved segments specifically can adopt the Bezier line segment.
Step 303: draw handwritten content according to the mark of drawing incident, the data of drawing incident and the data of drawing curved segments.
In the embodiment of the invention three; Obtain original drawing dimension information and drawing cell array; From this array, read the drawing incident of handwritten content and the data of drawing curved segments; Show the user according to this incident and data drafting handwritten content, show that with existing employing picture file the mode of handwritten content is compared, the shared storage space of array that carries identical handwritten content is significantly less than the shared storage space of picture; Therefore disk space can be practiced thrift, and when transmission, a large amount of network traffics can be saved.
Fig. 4 is the process flow diagram of methods of exhibiting of the touch screen hand-writing content of the embodiment of the invention four.In the embodiment of the invention four, this drawing curved segments specifically adopts the Bezier line segment.As shown in Figure 4, this method comprises following process.
Step 401: receiving side terminal equipment receives binary file or binary code stream, obtains original drawing dimension information and drawing cell array.
In this step, receiving side terminal equipment obtains original drawing dimension information and drawing cell array from sending side terminal equipment.Particularly, can adopt in following mode one and the mode two any one to realize this step.
Mode one: receiving side terminal equipment receives the handwrite messages message from sending side terminal equipment, carries the type of message sign and the binary file of binary file in this handwrite messages message.This binary file comprises: above-mentioned original drawing dimension information and above-mentioned drawing cell array.Wherein, this original drawing dimension information can comprise: the maximum horizontal ordinate of the minimum ordinate of the minimum horizontal ordinate of the maximum ordinate of the maximum horizontal ordinate of original drawing paper, original drawing paper, original handwritten content, original handwritten content, original handwritten content and the maximum ordinate of original handwritten content.
Further, can also comprise in this binary file: user profile.Wherein, this user profile can comprise: the length information of ID and ID array.
Mode one is applicable to the application scenario of common handwrite messages, transmits this binary file with file mode.This handwrite messages message can adopt the XMPP agreement to send.An instantiation of the handwrite messages message that employing mode one receives is:
<message?id=″xc3S4-42″to=″julietcn.hotalk.com″from=″romeocn.hotalk.com/android″type=″chat″><body/><thread>DAooyN</thread><data?xmlns=″urn:xmpp:bob″><item><bob?cid=″2263″max-age=″0″type=″application/du″></bob></item></data></message>
Wherein, type=" application/du " is the type of message sign of binary file, and receiving side terminal equipment knows that according to specific type of message " application/du " sign the file that this message carries is a binary file.Particularly, a kind of preferred implementation is that the form of this binary file is as shown in table 1.
Mode two: receiving side terminal equipment receives the Sharing Whiteboard message packet from sending side terminal equipment, carries the type of message sign and the binary code stream of binary code stream in this Sharing Whiteboard message packet.This binary code stream comprises: above-mentioned original drawing dimension information and above-mentioned drawing cell array.Wherein, this original drawing dimension information can comprise: the maximum horizontal ordinate of the minimum ordinate of the minimum horizontal ordinate of the maximum ordinate of the maximum horizontal ordinate of original drawing paper, original drawing paper, original handwritten content, original handwritten content, original handwritten content and the maximum ordinate of original handwritten content.
Alternatively, can also comprise in this binary code stream: user profile.Wherein, this user profile can comprise: the length information of ID and ID array.
Mode two is applicable to the application scenario of Sharing Whiteboard message, transmits this binary code stream with the text message mode.This Sharing Whiteboard message packet can adopt the XMPP agreement to send.An instantiation of the Sharing Whiteboard message packet that employing mode two receives is:
<message?id=″xc3S4-42″to=″julietcn.hotalk.com″from=″romeocn.hotalk.com/android″type=″draw″><body>G*&TY3*Teg2Jo</body><thread>DAooyN</thread></message>
Wherein, type=" draw " is the type of message sign of binary code stream, and receiving side terminal equipment knows that according to specific type of message " draw " sign this message carries binary code stream.
Step 402: receiving side terminal equipment reads the data of the corresponding Bezier line segment of data and the handwritten content of mark, drawing incident of the corresponding drawing incident of handwritten content the cell array from drawing.
The drawing incident can comprise: brush color incident, paintbrush width incident, background color incident, starting point incident and terminating point incident.
In this step, be example still with the preferred embodiment in the embodiment of the invention two, for based on 32-bit operating system, adopt greater than 999999999 integer as the variety of event mark.When reading a value the cell array from drawing when being 1000000000, obtain this and be the mark of starting point incident; When reading a value the cell array from drawing when being 1000000001, obtain this and be the mark of terminating point incident; When reading a value the cell array from drawing when being 1000000002, obtain this and be the mark of brush color incident; When reading a value the cell array from drawing when being 1000000003, obtain this and be the mark of paintbrush width incident; When reading a value the cell array from drawing when being 1000000004, obtain this and be the mark of background color incident.When reading a value the cell array from drawing less than 1000000000 the time, obtain this and be the data of Bezier line segment.
Step 403: receiving side terminal equipment is drawn handwritten content according to the mark of drawing incident, the data of drawing incident and the data of Bezier line segment.
In this step, can comprise following process.
The first step; According to the maximum horizontal ordinate of the minimum ordinate of the minimum horizontal ordinate of the maximum ordinate of the maximum horizontal ordinate of original drawing paper, original drawing paper, original handwritten content, original handwritten content, original handwritten content and the maximum ordinate of original handwritten content, obtain zooming parameter.
With " zoomsize " expression zooming parameter, the concrete grammar of the first step can comprise: at first define zooming parameter, for example: zoomsize=1.0.Then, according to original drawing paper size or original handwritten content size and the relation of showing screen size or layout dimension, confirm new zooming parameter value.The value of this zooming parameter must not have upper limit requirement greater than 0.
On this basis, can also define the broadcasting speed parameter.This broadcasting speed parameter is the thread of this handwritten content methods of exhibiting of execution or the dormancy time of process.Represent this speed parameter with " sleepTime ", an embodiment of definition broadcasting speed parameter is: sleepTime=60*zoomsize (millisecond).And, can be according to user's setting, the value of this broadcasting speed parameter of updated at any time.The value of this broadcasting speed parameter must not have upper limit requirement more than or equal to 0.Through the setting of broadcasting speed parameter, the speed of drawing the Bezier line segment can be adjusted, thereby animation effect can be produced, according to sequential write Dynamic Display handwritten content, writing process is represented the user to the take over party.When the value of this broadcasting speed parameter is 0, will not embody animation process, directly show end product.
In second step, draw handwritten content according to the mark of zooming parameter, drawing incident, the data of drawing incident and the data of Bezier line segment.
The concrete method for drafting in second step comprises: according to the mark of brush color incident and the data of brush color incident, brush color is set; According to the mark of paintbrush width incident and the data of paintbrush width incident, the paintbrush width is set; According to the mark of background color incident and the data of background color incident, background color is set; According to the mark of starting point incident, the data and the zooming parameter of starting point incident, draw starting point; According to the mark of terminating point incident, the data and the zooming parameter of terminating point incident, draw terminating point; According to the data and the zooming parameter of Bezier line segment, draw Bezier.
Particularly, be example still with the preferred embodiment in the embodiment of the invention two, define the current position i=0 that reads, begin to read DU [i], till i is more than or equal to the DU array length time.
When the value that reads DU [i] is 1000000000, the mark that gets access to the starting point incident is described, the path of then at first resetting; Read x=DU [i+1] and y=DU [i+2] then; Draw again point (x*zoomsize, y*zoomsize); Adopt then following statement with this point put into path path moveTo (x*zoomsize, y*zoomsize); At last the current position of reading is moved 3 backward in DU, i.e. i=i+3.
When the value that reads DU [i] is 1000000001, the mark that gets access to the terminating point incident is described, then read x=DU [i+1] and y=DU [i+2]; Draw then point (x*zoomsize, y*zoomsize); Adopt following statement that this point is put into the path then: path lineTo (x*zoomsize, y*zoomsize); Draw this path then; Path again resets; At last the current position of reading is moved 3 backward in DU, i.e. i=i+3.
When the value that reads DU [i] is 1000000002, the mark that gets access to the brush color incident is described, then the next item down from current location reads brush color: newcolor=DU [i+1]; The corresponding color of the RGB parameter of the brush color numeric representation that is set to read then; At last the current position of reading is moved 2 backward in DU, i.e. i=i+2.
When the value that reads DU [i] is 1000000003, the mark that gets access to paintbrush width incident is described, then the next item down from current location reads paintbrush width: newwidth=DU [i+1]; The paintbrush width numerical value pixel corresponding that be set to read then with the product of zooming parameter; At last the current position of reading is moved 2 backward in DU, i.e. i=i+2.
When the value that reads DU [i] is 1000000004, the mark that gets access to the background color incident is described, then the next item down from current location reads background color: newcolor=DU [i+1]; The corresponding color of the RGB parameter of the background color numeric representation that is set to read then; At last the current position of reading is moved 2 backward in DU, i.e. i=i+2.
When the value that reads DU [i] less than 1000000000 the time; The data that get access to the Bezier line segment are described; Then from current location forward two read before any coordinate and from current location backward two read any coordinate of back, that is: X1=DU [i-2], Y1=DU [i-1]; X2=DU [i], Y2=DU [i+1]; Then, with (X1*zoomsize Y1*zoomsize) is starting point, with ((X1+X2)/2) * zoomsize, and ((Y1+Y2)/2) * zoomsize) be terminating point, draw Bezier; At last the current position of reading is moved 4 backward in DU, i.e. i=i+4.
On the basis of such scheme, further, when drawing handwritten content, when the currentitem that reads from the drawing cell array does not belong to the data of mark or Bezier line segment of drawing incident, continue to read the next item down of said drawing cell array.
Particularly; Be example still with the preferred embodiment in the embodiment of the invention two; When the value that reads DU [i] greater than 1000000004 the time; Explain current get access to neither the mark of the mark of the mark of the mark of brush color incident, paintbrush width incident, background color incident, starting point incident or the mark of terminating point incident, data that neither the Bezier line segment are not when promptly currentitem belongs to the data of mark or Bezier line segment of drawing incident; Then continue to read the next item down of drawing cell array, that is: Number=DU [i+1]; I=i+1+Number.Through this step, the expansion that realization faces the future is if increase new incident in the handwritten content methods of exhibiting; Then can increase a parameter, this parameter is an example with " Number ", the item number among the DU that the mark of the incident that this parameter increases newly in order to explanation need take; If the handwritten content methods of exhibiting of current employing can't be resolved the incident that this increases newly; Then can only read this Number parameter, skip the current item that reads then, continue to read the next item down of drawing cell array.
In the embodiment of the invention four; Through parsing to binary file or binary code stream; From array wherein, read the drawing incident of handwritten content and the data of Bezier line segment; Show the user according to this incident and data drafting handwritten content; Be significantly less than the shared storage space of picture owing to carry the binary file or the shared storage space of binary code stream of the array formation of identical handwritten content, therefore can practice thrift disk space, and when transmission, can save a large amount of network traffics.And, through when drawing the Bezier line segment, the broadcasting speed parameter being set, can adjust render speed, thereby produce animation effect, according to sequential write Dynamic Display handwritten content, writing process is represented the user to the take over party.
Fig. 5 is the structural representation of the terminal device of the embodiment of the invention five.As shown in Figure 5, this equipment comprises at least: handwritten content processing unit 51, array manipulation unit 52 and file processing unit 53.
Wherein, handwritten content processing unit 51 is used to obtain the corresponding drawing incident of handwritten content, drawing curved segments, user profile and original drawing dimension information.In a kind of preferred implementation of the present invention, this drawing curved segments specifically can adopt the Bezier line segment.
Array manipulation unit 52 is used for the data storage of the data of the mark of above-mentioned drawing incident, above-mentioned drawing incident and above-mentioned drawing curved segments is arrived the drawing cell array; The mark of drawing incident is used to indicate the type of drawing incident, and the data of drawing incident are the corresponding concrete numerical value of content of drawing incident.
File processing unit 53 is used to generate and store binary file.Above-mentioned binary file comprises: above-mentioned user profile, above-mentioned original drawing dimension information and above-mentioned drawing cell array.
On the basis of technique scheme, particularly, above-mentioned drawing incident comprises: brush color incident, paintbrush width incident, background color incident, starting point incident and terminating point incident.Above-mentioned user profile comprises: the length information of User Identity ID and ID array.Above-mentioned original drawing dimension information comprises: the maximum horizontal ordinate of the minimum ordinate of the minimum horizontal ordinate of the maximum ordinate of the maximum horizontal ordinate of original drawing paper, original drawing paper, original handwritten content, original handwritten content, original handwritten content and the maximum ordinate of original handwritten content.
On the basis of technique scheme, further, can also comprise first transmitting element 54 in this equipment.This first transmitting element 54 is used for sending the handwrite messages message to receiving side terminal equipment.Carry the type of message sign and the above-mentioned binary file of above-mentioned binary file in the above-mentioned handwrite messages message.
On the basis of technique scheme, further, can also comprise second transmitting element 55 in this equipment.This second transmitting element 55 is used for sending the Sharing Whiteboard message packet to receiving side terminal equipment.Carry the type of message sign and the above-mentioned binary code stream of binary code stream in the above-mentioned Sharing Whiteboard message packet, above-mentioned binary code stream comprises above-mentioned original drawing dimension information and above-mentioned drawing cell array.
In the embodiment of the invention five; The handwritten content processing unit extracts the data of drawing incident and drawing curved segments from handwritten content; The array manipulation unit with above-mentioned incident and data recording in array;, the file processing unit generates binary file and storage according to this array; Compare with the mode of existing employing picture file storage handwritten content, be significantly less than the shared storage space of picture, therefore can practice thrift disk space owing to carry the shared storage space of binary file of the array formation of identical handwritten content.And, adopt the said equipment storage handwritten content, when the content that will store at needs sends to the take over party, can save a large amount of network traffics.
Fig. 6 is the structural representation of the terminal device of the embodiment of the invention six.As shown in Figure 6, this equipment comprises at least: information receiving unit 61, data-reading unit 62 and drawing unit 63.
Wherein, information receiving unit 61 is used to obtain original drawing dimension information and drawing unit 63 arrays.
Data-reading unit 62 is used for the data of the corresponding drawing curved segments of data and the above-mentioned handwritten content of the mark that from above-mentioned drawing unit 63 arrays read the corresponding drawing incident of handwritten content, above-mentioned drawing incident; The mark of drawing incident is used to indicate the type of drawing incident, and the data of drawing incident are the corresponding concrete numerical value of content of drawing incident.In a kind of preferred implementation of the present invention, this drawing curved segments specifically can adopt the Bezier line segment.
Drawing unit 63 is used for the data of the mark according to above-mentioned drawing incident, above-mentioned drawing incident and the data of above-mentioned drawing curved segments are drawn above-mentioned handwritten content.
On the basis of technique scheme; Particularly, above-mentioned original drawing dimension information comprises: the maximum horizontal ordinate of the minimum ordinate of the minimum horizontal ordinate of the maximum ordinate of the maximum horizontal ordinate of original drawing paper, original drawing paper, original handwritten content, original handwritten content, original handwritten content and the maximum ordinate of original handwritten content.Above-mentioned drawing incident comprises: brush color incident, paintbrush width incident, background color incident, starting point incident and terminating point incident.
On the basis of technique scheme; Particularly; Above-mentioned drawing unit 63 specifically is used for obtaining zooming parameter according to the maximum horizontal ordinate of the minimum ordinate of the minimum horizontal ordinate of the maximum ordinate of the maximum horizontal ordinate of above-mentioned original drawing paper, original drawing paper, original handwritten content, original handwritten content, original handwritten content and the maximum ordinate of original handwritten content; According to the mark of above-mentioned brush color incident and the data of brush color incident, brush color is set; According to the mark of above-mentioned paintbrush width incident and the data of paintbrush width incident, the paintbrush width is set; According to the mark of above-mentioned background color incident and the data of background color incident, background color is set; According to the mark of above-mentioned starting point incident, the data and the above-mentioned zooming parameter of starting point incident, draw starting point; According to the mark of above-mentioned terminating point incident, the data and the above-mentioned zooming parameter of terminating point incident, draw terminating point; According to the data and the above-mentioned zooming parameter of above-mentioned drawing curved segments, draw the drawing curve.
On the basis of technique scheme; Further; Above-mentioned drawing unit 63 also specifically is used for when the currentitem that 63 arrays from above-mentioned drawing unit read does not belong to the data of mark and above-mentioned drawing curved segments of above-mentioned drawing incident, continuing to read the next item down of above-mentioned drawing unit 63 arrays.
On the basis of technique scheme; Particularly; Above-mentioned information receiving unit 61 specifically is used for receiving the handwrite messages message from sending side terminal equipment; Carry the type of message sign and the above-mentioned binary file of binary file in the above-mentioned handwrite messages message, above-mentioned binary file comprises: user profile, above-mentioned original drawing dimension information and above-mentioned drawing unit 63 arrays, above-mentioned user profile comprises: the length information of User Identity ID and ID array.
Perhaps; Above-mentioned information receiving unit 61 specifically is used for receiving the Sharing Whiteboard message packet from sending side terminal equipment; Carry the type of message sign and the above-mentioned binary code stream of binary code stream in the above-mentioned Sharing Whiteboard message packet, above-mentioned binary code stream comprises original drawing dimension information and above-mentioned drawing unit 63 arrays.
In the embodiment of the invention six; According to the information receiving unit original drawing dimension information that obtains and the cell array of painting; Data-reading unit reads the drawing incident of handwritten content and the data of drawing curved segments from the array of this document; The drawing unit shows the user according to this incident and data drafting handwritten content, shows that with existing employing picture file the mode of handwritten content is compared, and the shared storage space of array that carries identical handwritten content is significantly less than the shared storage space of picture; Therefore disk space can be practiced thrift, and when transmission, a large amount of network traffics can be saved.
The concrete executive mode of each component units of the terminal device of the embodiment of the invention five can be with reference to the record of the embodiment of the invention one and the embodiment of the invention two, and the concrete executive mode of each component units of the terminal device of the embodiment of the invention six can be with reference to the record of the embodiment of the invention three and the embodiment of the invention four.And, each component units of each component units of the terminal device of the invention described above embodiment five and the terminal device of the embodiment of the invention six can be provided with simultaneously with same terminal device in.
Need to prove: for aforesaid each method embodiment; For simple description; So it all is expressed as a series of combination of actions, but those skilled in the art should know that the present invention does not receive the restriction of described sequence of movement; Because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the instructions all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, do not have the part that details among certain embodiment, can be referring to the associated description of other embodiment.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each method embodiment can be accomplished through the relevant hardware of programmed instruction.Aforesaid program can be stored in the computer read/write memory medium.This program the step that comprises above-mentioned each method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
What should explain at last is: above each embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although the present invention has been carried out detailed explanation with reference to aforementioned each embodiment; Those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, perhaps to wherein part or all technical characteristic are equal to replacement; And these are revised or replacement, do not make the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.

Claims (18)

1. the storage means of a touch screen hand-writing content is characterized in that, comprising:
Obtain the corresponding drawing incident of handwritten content, drawing curved segments, user profile and original drawing dimension information;
The data of the mark of said drawing incident, said drawing incident and the data storage of said drawing curved segments are arrived the drawing cell array; The mark of said drawing incident is used to indicate the type of said drawing incident, and the data of said drawing incident are the corresponding concrete numerical value of content of said drawing incident;
Generate and store binary file, said binary file comprises: said user profile, said original drawing dimension information and said drawing cell array.
2. method according to claim 1 is characterized in that,
Said drawing incident comprises: brush color incident, paintbrush width incident, background color incident, starting point incident and terminating point incident;
Said user profile comprises: the length information of User Identity ID and ID array;
Said original drawing dimension information comprises: the maximum horizontal ordinate of the minimum ordinate of the minimum horizontal ordinate of the maximum ordinate of the maximum horizontal ordinate of original drawing paper, original drawing paper, original handwritten content, original handwritten content, original handwritten content and the maximum ordinate of original handwritten content.
3. method according to claim 1 and 2 is characterized in that, said generating and storing after the binary file also comprises:
Send the handwrite messages message to receiving side terminal equipment, carry the type of message sign and the said binary file of said binary file in the said handwrite messages message.
4. method according to claim 1 and 2 is characterized in that, the data of said mark with said drawing incident, said drawing incident and the data storage of said drawing curved segments arrive after the drawing cell array, also comprise:
Send the Sharing Whiteboard message packet to receiving side terminal equipment; Carry the type of message sign and the said binary code stream of binary code stream in the said Sharing Whiteboard message packet, said binary code stream comprises said original drawing dimension information and said drawing cell array.
5. the methods of exhibiting of a touch screen hand-writing content is characterized in that, comprising:
Obtain original drawing dimension information and drawing cell array;
From said drawing cell array, read the data of the corresponding drawing curved segments of data and the said handwritten content of the mark of the corresponding drawing incident of handwritten content, said drawing incident; The mark of said drawing incident is used to indicate the type of said drawing incident, and the data of said drawing incident are the corresponding concrete numerical value of content of said drawing incident;
Draw said handwritten content according to the data of the mark of said drawing incident, said drawing incident and the data of said drawing curved segments.
6. method according to claim 5 is characterized in that,
Said original drawing dimension information comprises: the maximum horizontal ordinate of the minimum ordinate of the minimum horizontal ordinate of the maximum ordinate of the maximum horizontal ordinate of original drawing paper, original drawing paper, original handwritten content, original handwritten content, original handwritten content and the maximum ordinate of original handwritten content;
Said drawing incident comprises: brush color incident, paintbrush width incident, background color incident, starting point incident and terminating point incident.
7. method according to claim 6 is characterized in that, the data of said mark according to said drawing incident, said drawing incident and the data of said drawing curved segments are drawn said handwritten content and comprised:
According to the maximum horizontal ordinate of the minimum ordinate of the minimum horizontal ordinate of the maximum ordinate of the maximum horizontal ordinate of said original drawing paper, original drawing paper, original handwritten content, original handwritten content, original handwritten content and the maximum ordinate of original handwritten content, obtain zooming parameter;
According to the mark of said brush color incident and the data of brush color incident, brush color is set;
According to the mark of said paintbrush width incident and the data of paintbrush width incident, the paintbrush width is set;
According to the mark of said background color incident and the data of background color incident, background color is set;
According to the mark of said starting point incident, the data and the said zooming parameter of starting point incident, draw starting point;
According to the mark of said terminating point incident, the data and the said zooming parameter of terminating point incident, draw terminating point;
According to the data and the said zooming parameter of said drawing curved segments, draw the drawing curve.
8. method according to claim 7 is characterized in that, the data of said mark according to said drawing incident, said drawing incident and the data of said drawing curved segments are drawn said handwritten content and also comprised:
When the currentitem that reads from said drawing cell array does not belong to the data of mark and said drawing curved segments of said drawing incident, continue to read the next item down of said drawing cell array.
9. according to the described method of claim 5 to 8, it is characterized in that, said obtain original drawing dimension information with the drawing cell array comprise:
Receive the handwrite messages message from sending side terminal equipment; Carry the type of message sign and the said binary file of binary file in the said handwrite messages message; Said binary file comprises: user profile, said original drawing dimension information and said drawing cell array, and said user profile comprises: the length information of User Identity ID and ID array;
Or; Receive the Sharing Whiteboard message packet from sending side terminal equipment; Carry the type of message sign and the said binary code stream of binary code stream in the said Sharing Whiteboard message packet, said binary code stream comprises original drawing dimension information and said drawing cell array.
10. a terminal device is characterized in that, comprising:
The handwritten content processing unit is used to obtain the corresponding drawing incident of handwritten content, drawing curved segments, user profile and original drawing dimension information;
The array manipulation unit; Be used for the data of the mark of said drawing incident, said drawing incident and the data storage of said drawing curved segments are arrived the drawing cell array; The mark of said drawing incident is used to indicate the type of said drawing incident, and the data of said drawing incident are the corresponding concrete numerical value of content of said drawing incident;
The file processing unit is used to generate and store binary file, and said binary file comprises: said user profile, said original drawing dimension information and said drawing cell array.
11. equipment according to claim 10 is characterized in that,
Said drawing incident comprises: brush color incident, paintbrush width incident, background color incident, starting point incident and terminating point incident;
Said user profile comprises: the length information of User Identity ID and ID array;
Said original drawing dimension information comprises: the maximum horizontal ordinate of the minimum ordinate of the minimum horizontal ordinate of the maximum ordinate of the maximum horizontal ordinate of original drawing paper, original drawing paper, original handwritten content, original handwritten content, original handwritten content and the maximum ordinate of original handwritten content.
12. according to claim 10 or 11 described equipment, it is characterized in that, also comprise:
First transmitting element is used for sending the handwrite messages message to receiving side terminal equipment, carries the type of message sign and the said binary file of said binary file in the said handwrite messages message.
13. according to claim 10 or 11 described equipment, it is characterized in that, also comprise:
Second transmitting element; Be used for sending the Sharing Whiteboard message packet to receiving side terminal equipment; Carry the type of message sign and the said binary code stream of binary code stream in the said Sharing Whiteboard message packet, said binary code stream comprises said original drawing dimension information and said drawing cell array.
14. a terminal device is characterized in that, comprising:
Information receiving unit is used to obtain original drawing dimension information and drawing cell array;
Data-reading unit; Be used for reading the data of the corresponding drawing curved segments of data and the said handwritten content of the mark of the corresponding drawing incident of handwritten content, said drawing incident from said drawing cell array; The mark of said drawing incident is used to indicate the type of said drawing incident, and the data of said drawing incident are the corresponding concrete numerical value of content of said drawing incident;
The drawing unit is used for the data of the mark according to said drawing incident, said drawing incident and the data of said drawing curved segments and draws said handwritten content.
15. equipment according to claim 14 is characterized in that,
Said original drawing dimension information comprises: the maximum horizontal ordinate of the minimum ordinate of the minimum horizontal ordinate of the maximum ordinate of the maximum horizontal ordinate of original drawing paper, original drawing paper, original handwritten content, original handwritten content, original handwritten content and the maximum ordinate of original handwritten content;
Said drawing incident comprises: brush color incident, paintbrush width incident, background color incident, starting point incident and terminating point incident.
16. equipment according to claim 15 is characterized in that,
Said drawing unit specifically is used for obtaining zooming parameter according to the maximum horizontal ordinate of the minimum ordinate of the minimum horizontal ordinate of the maximum ordinate of the maximum horizontal ordinate of said original drawing paper, original drawing paper, original handwritten content, original handwritten content, original handwritten content and the maximum ordinate of original handwritten content; According to the mark of said brush color incident and the data of brush color incident, brush color is set; According to the mark of said paintbrush width incident and the data of paintbrush width incident, the paintbrush width is set; According to the mark of said background color incident and the data of background color incident, background color is set; According to the mark of said starting point incident, the data and the said zooming parameter of starting point incident, draw starting point; According to the mark of said terminating point incident, the data and the said zooming parameter of terminating point incident, draw terminating point; According to the data and the said zooming parameter of said drawing curved segments, draw the drawing curve.
17. equipment according to claim 16 is characterized in that,
Said drawing unit also specifically is used for when the currentitem that reads from said drawing cell array does not belong to the data of mark and said drawing curved segments of said drawing incident, continuing to read the next item down of said drawing cell array.
18. according to the described method of claim 14 to 17, it is characterized in that,
Said information receiving unit specifically is used for receiving the handwrite messages message from sending side terminal equipment; Carry the type of message sign and the said binary file of binary file in the said handwrite messages message; Said binary file comprises: user profile, said original drawing dimension information and said drawing cell array, and said user profile comprises: the length information of User Identity ID and ID array;
Or; Said information receiving unit specifically is used for receiving the Sharing Whiteboard message packet from sending side terminal equipment; Carry the type of message sign and the said binary code stream of binary code stream in the said Sharing Whiteboard message packet, said binary code stream comprises original drawing dimension information and said drawing cell array.
CN201210085652.0A 2012-03-28 2012-03-28 Storage method and display method for handwritten content on touch screen, terminal equipment Active CN102663667B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210085652.0A CN102663667B (en) 2012-03-28 2012-03-28 Storage method and display method for handwritten content on touch screen, terminal equipment
PCT/CN2013/073330 WO2013143471A1 (en) 2012-03-28 2013-03-28 Storage method, display method and terminal device of touch screen hand writing content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210085652.0A CN102663667B (en) 2012-03-28 2012-03-28 Storage method and display method for handwritten content on touch screen, terminal equipment

Publications (2)

Publication Number Publication Date
CN102663667A true CN102663667A (en) 2012-09-12
CN102663667B CN102663667B (en) 2014-12-24

Family

ID=46773146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210085652.0A Active CN102663667B (en) 2012-03-28 2012-03-28 Storage method and display method for handwritten content on touch screen, terminal equipment

Country Status (2)

Country Link
CN (1) CN102663667B (en)
WO (1) WO2013143471A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013143471A1 (en) * 2012-03-28 2013-10-03 华为技术有限公司 Storage method, display method and terminal device of touch screen hand writing content
CN106375300A (en) * 2016-08-30 2017-02-01 孙卓金 Network session transmission method of handwritten strokes
CN106468965A (en) * 2015-08-14 2017-03-01 北大方正集团有限公司 The storage method of form of a stroke or a combination of strokes information and system, the back method of form of a stroke or a combination of strokes information and system
CN110806828A (en) * 2018-08-02 2020-02-18 珠海金山办公软件有限公司 Method and device for erasing PDF document content

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1538722A (en) * 2003-04-18 2004-10-20 Method of realizing handwriting information exchange for cmmunication terminal
CN1752994A (en) * 2004-09-21 2006-03-29 北京优士东方数码科技有限公司 Method of realizing hand writing instant information
CN1811773A (en) * 2005-01-21 2006-08-02 微软公司 System and method for storing a document in a serial binary format
US20080198146A1 (en) * 2001-11-30 2008-08-21 Mattias Bryborn Electronic pen and method for recording of handwritten information
CN101567894A (en) * 2009-05-31 2009-10-28 方亚南 Hand-written message transmitting/receiving method and transmitting/receiving device
CN101656548A (en) * 2009-08-04 2010-02-24 中兴通讯股份有限公司 Wireless terminal and method for implementing voice broadcasting function for short-range communication
CN102110175A (en) * 2009-12-29 2011-06-29 鸿富锦精密工业(深圳)有限公司 Method and device for storing input character

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295217B (en) * 2008-06-05 2010-06-09 中兴通讯股份有限公司 Hand-written input processing equipment and method
CN102663667B (en) * 2012-03-28 2014-12-24 华为技术有限公司 Storage method and display method for handwritten content on touch screen, terminal equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080198146A1 (en) * 2001-11-30 2008-08-21 Mattias Bryborn Electronic pen and method for recording of handwritten information
CN1538722A (en) * 2003-04-18 2004-10-20 Method of realizing handwriting information exchange for cmmunication terminal
CN1752994A (en) * 2004-09-21 2006-03-29 北京优士东方数码科技有限公司 Method of realizing hand writing instant information
CN1811773A (en) * 2005-01-21 2006-08-02 微软公司 System and method for storing a document in a serial binary format
CN101567894A (en) * 2009-05-31 2009-10-28 方亚南 Hand-written message transmitting/receiving method and transmitting/receiving device
CN101656548A (en) * 2009-08-04 2010-02-24 中兴通讯股份有限公司 Wireless terminal and method for implementing voice broadcasting function for short-range communication
CN102110175A (en) * 2009-12-29 2011-06-29 鸿富锦精密工业(深圳)有限公司 Method and device for storing input character

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013143471A1 (en) * 2012-03-28 2013-10-03 华为技术有限公司 Storage method, display method and terminal device of touch screen hand writing content
CN106468965A (en) * 2015-08-14 2017-03-01 北大方正集团有限公司 The storage method of form of a stroke or a combination of strokes information and system, the back method of form of a stroke or a combination of strokes information and system
CN106375300A (en) * 2016-08-30 2017-02-01 孙卓金 Network session transmission method of handwritten strokes
CN110806828A (en) * 2018-08-02 2020-02-18 珠海金山办公软件有限公司 Method and device for erasing PDF document content
CN110806828B (en) * 2018-08-02 2023-11-07 珠海金山办公软件有限公司 Method and device for erasing PDF document content

Also Published As

Publication number Publication date
CN102663667B (en) 2014-12-24
WO2013143471A1 (en) 2013-10-03

Similar Documents

Publication Publication Date Title
CN105446689A (en) Synchronization method and system of remote commenting
CN107943363B (en) Background image configuration method and device, interactive intelligent panel and storage medium
CN106056530B (en) Method and device for displaying picture content in application
US10296787B2 (en) Ink file output method, output device, and program
CN105069104B (en) A kind of generation method and system of dynamic caricature
CN108733296B (en) Method, device and equipment for erasing handwriting
CN104199911A (en) Storage method and device for PPT
CN108881227B (en) Operation control method and device of remote whiteboard system and remote whiteboard system
CN102663667B (en) Storage method and display method for handwritten content on touch screen, terminal equipment
CN105160951A (en) Mobile-device-based white board teaching method and system
CN105554430A (en) Video call method, system and device
JP2013118612A (en) Screen capture method for mobile communication terminal
CN102420855B (en) Method and system for displaying and playing by light-emitting diode (LED) terminal as well as server
CN104571782A (en) Remote control method, system, controlling terminal and controlled terminal
CN101127847A (en) A screen display synthesis method and synthesis device
CN108399156A (en) The composition method and device of formula in a kind of pdf document
CN104468714B (en) A kind of method that distance teaching is realized by service end and client interaction
CN104092958B (en) Vision signal mask method, system and device
CN111352539A (en) Method and device for terminal interaction
CN110211484A (en) A kind of electronics price tag display methods, system and server and storage medium
CN109933378A (en) Information configuration, display methods, equipment, system and storage medium
CN104618875A (en) Message sending method and electronic device
WO2021196055A1 (en) Dot matrix graph display method and apparatus, electronic device, and system
CN104442054A (en) Two-dimension code printing method and device based on mainframe platform
CN103942543A (en) Image recognition method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant