CN102663667B - 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
CN102663667B
CN102663667B CN201210085652.0A CN201210085652A CN102663667B CN 102663667 B CN102663667 B CN 102663667B CN 201210085652 A CN201210085652 A CN 201210085652A CN 102663667 B CN102663667 B CN 102663667B
Authority
CN
China
Prior art keywords
event
original
data
mark
handwritten content
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.)
Active
Application number
CN201210085652.0A
Other languages
Chinese (zh)
Other versions
CN102663667A (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

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, particularly relate to a kind of storage means of touch screen hand-writing content, methods of exhibiting and terminal device.
Background technology
Along with smart mobile phone, panel computer etc. possess the electronic product of touch-screen input capability and micro-letter, instant messaging (the Instant Messaging such as rice is chatted, be called for short IM) fast development of software, increasing user uses above-mentioned electronic product to adopt handwriting input mode to carry out instant messaging by instant communication software.
In above-mentioned instant messaging process, transmit leg user is the content such as hand-written tablet pattern or word on the touch-screen of sending side terminal equipment, the content of handwriting input is first stored as picture by sending side terminal equipment, then with the form of picture, this content is sent to receiving side terminal equipment, receiving side terminal equipment is showed take over party user with the form of picture.
Shared by image data, storage space is comparatively large, and the picture size of one 10 word 240*84 pixels is about 3Kb.Therefore adopt the storage of above-mentioned existing handwriting input content, transmission and methods of exhibiting, need on the terminal device to take a large amount of disk spaces, and need to take a large amount of network traffics in transmitting procedure.
Summary of the invention
First aspect of the present invention is to provide a kind of storage means and methods of exhibiting of touch screen hand-writing content, in order to solve defect of the prior art, saves disk space and network traffics.
Another aspect of the present invention is to provide a kind of terminal device, in order to solve defect of the prior art, saves disk space and network traffics.
First aspect of the present invention is to provide a kind of storage means of touch screen hand-writing content, comprising:
Obtain drawing event corresponding to handwritten content, drawing curved segments, user profile and original drawing dimension information;
The data of the mark of described drawing event, described drawing event and the data of described drawing curved segments are stored into drawing cell array, the mark of described drawing event is used to indicate the type of described drawing event, and the data of described drawing event are concrete numerical value corresponding to the content of described drawing event;
Generate and store binary file, described binary file comprises: described user profile, described original drawing dimension information and described drawing cell array.
Another aspect of the present invention is to provide a kind of methods of exhibiting of touch screen hand-writing content, comprising:
Obtain original drawing dimension information and drawing cell array;
The data of drawing curved segments corresponding to the mark of drawing event corresponding to handwritten content, the data of described drawing event and described handwritten content are read from described drawing cell array, the mark of described drawing event is used to indicate the type of described drawing event, and the data of described drawing event are concrete numerical value corresponding to the content of described drawing event;
Handwritten content according to the Plotting data of the mark of described drawing event, the data of described drawing event and described drawing curved segments.
Another aspect of the present invention is to provide a kind of terminal device, comprising:
Handwritten content processing unit, for obtaining drawing event corresponding to handwritten content, drawing curved segments, user profile and original drawing dimension information;
Array manipulation unit, for the data of the mark of described drawing event, described drawing event and the data of described drawing curved segments are stored into drawing cell array, the mark of described drawing event is used to indicate the type of described drawing event, and the data of described drawing event are concrete numerical value corresponding to the content of described drawing event;
Document handling unit, for generating and storing binary file, described binary file comprises: described user profile, described original drawing dimension information and described drawing cell array.
Another aspect of the present invention is to provide a kind of terminal device, comprising:
Information receiving unit, for obtaining original drawing dimension information and drawing cell array;
Data-reading unit, for reading the data of drawing curved segments corresponding to the mark of drawing event corresponding to handwritten content, the data of described drawing event and described handwritten content from described drawing cell array, the mark of described drawing event is used to indicate the type of described drawing event, and the data of described drawing event are concrete numerical value corresponding to the content of described drawing event;
Drawing unit, for handwritten content described in the data of the mark according to described drawing event, described drawing event and the Plotting data of described drawing curved segments.
Visible according to foregoing invention content, the data of drawing event and drawing curved segments are extracted from handwritten content, above-mentioned event and data are recorded in array, and generate binary file according to this array and store, compared with storing the mode of handwritten content with existing employing picture file, storage space shared by the binary file that the array of carrying identical handwritten content is formed is significantly less than the storage space shared by picture, therefore can save disk space.Further, adopting said method to store handwritten content, when needing the content of this storage to send, a large amount of network traffics can be saved.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of the storage means of the touch screen hand-writing content of the embodiment of the present invention one;
Fig. 2 is the process flow diagram of the storage means of the touch screen hand-writing content of the embodiment of the present invention two;
Fig. 3 is the process flow diagram of the methods of exhibiting of the touch screen hand-writing content of the embodiment of the present invention three;
Fig. 4 is the process flow diagram of the methods of exhibiting of the touch screen hand-writing content of the embodiment of the present invention four;
Fig. 5 is the structural representation of the terminal device of the embodiment of the present invention five;
Fig. 6 is the structural representation of the terminal device of the embodiment of the present invention six.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Each embodiment following of the present invention is applied in the instant messaging network architecture, this network architecture comprises: sending side terminal equipment, receiving side terminal equipment and connect the IM server of sending side terminal equipment and receiving side terminal equipment, by IM server, the handwriting input content of receiving side terminal equipment is transmitted to 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 be realized by 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 be realized by software module.
Fig. 1 is the process flow diagram of the storage means of the touch screen hand-writing content of the embodiment of the present invention one.As shown in Figure 1, the method comprises following process.
Step 101: obtain drawing event corresponding to handwritten content, drawing curved segments, user profile and original drawing dimension information.
In one of the present invention preferably embodiment, this drawing curved segments specifically can adopt Bezier line segment.
Step 102: the data of the mark of drawing event, drawing event and the data of drawing curved segments are stored into drawing cell array.
In this step, the mark of drawing event is used to indicate the type of drawing event, the various events in mark painting process; The data of drawing event are concrete numerical value corresponding to the content of above-mentioned event.Such as, drawing event flag is the mark of brush color event, and the data of the drawing event of its correspondence are the RGB color code that brush color is corresponding; Drawing event flag is the mark of starting point event, and the data of the drawing event of its correspondence are x coordinate figure and the y coordinate figure of starting point.In one preferably embodiment, the mark of drawing event can comprise: the mark etc. of the mark of brush color event, the mark of paintbrush width event, the mark of background color event, the mark of starting point event and terminating point event.Correspondingly, the data of event of painting can comprise: the x coordinate figure of the x coordinate figure of the RGB color code that brush color is corresponding, pixel value that paintbrush width is corresponding, RGB color code that background color is corresponding, 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 present invention one, the data of drawing event and drawing curved segments are extracted from handwritten content, above-mentioned event and data are recorded in array, and generate binary file according to this array and store, compared with storing the mode of handwritten content with existing employing picture file, storage space shared by the binary file that the array of carrying identical handwritten content is formed is significantly less than the storage space shared by picture, therefore can save disk space.Further, adopting said method to store handwritten content, when needing the content of this storage to be sent to take over party, a large amount of network traffics can be saved.
Fig. 2 is the process flow diagram of the storage means of the touch screen hand-writing content of the embodiment of the present invention two.In the embodiment of the present invention two, drawing curved segments specifically adopts Bezier line segment.As shown in Figure 2, the method comprises following process.
Step 201: sending side terminal equipment obtains handwritten content corresponding drawing event, Bezier line segment, user profile and original drawing dimension information.
In various embodiments of the present invention, represent horizontal ordinate with x, represent ordinate with y.
Particularly, user profile can comprise: the length information of User Identity (Identity is called for short ID) and user ID array.User ID is store in this user ID array.Original drawing dimension information can comprise: the maximum ordinate of the maximum horizontal ordinate of original drawing paper, the maximum ordinate of original drawing paper, the minimum horizontal ordinate of original handwritten content, the minimum ordinate of original handwritten content, the maximum horizontal ordinate of original handwritten content and 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 powering.
When user starts handwriting input, sending side terminal equipment obtains handwritten content corresponding drawing event, Bezier line segment.For a handwriting input, comprise many Bezier line segments, after often obtaining a new Bezier line segment, according to the current whole Bezier line segments got, upgrade the maximum ordinate of the minimum horizontal ordinate of original handwritten content, the minimum ordinate of original handwritten content, the maximum horizontal ordinate of original handwritten content and original handwritten content.
Particularly, drawing event specifically can include but not limited to the event of following kind: brush color event, paintbrush width event, background color event, starting point event and terminating point event.
Particularly, in one preferably embodiment, the method obtaining brush color event is:
Wherein, color is the RGB color code of new brush color.
Particularly, in one preferably embodiment, the method obtaining paintbrush width event is:
Wherein, size is the pixel value of new paintbrush width.
Particularly, in one preferably embodiment, the method for background extraction color event is:
Wherein, color is the RGB color code of new background color.
Particularly, in one preferably embodiment, the method obtaining starting point event is:
Wherein, bx is the x coordinate of starting point, and by is the y coordinate of starting point.
Particularly, in one preferably embodiment, the method obtaining terminating point event is:
Wherein, ex is the x coordinate of terminating point, and ey is the y coordinate of terminating point.
Particularly, in one preferably embodiment, the method obtaining Bezier line segment is:
Wherein, eX for this reason line segment terminating point holds concurrently the x coordinate of next line segment starting point, and eY for this reason line segment terminating point holds concurrently the y coordinate of next line segment starting point.
Step 202: the mark of drawing event, the drawing data of event and the data of Bezier line segment are stored into drawing cell array by sending side terminal equipment.
In this step, this drawing cell array is for storing the mark of drawing event, the data of event of painting and the data of Bezier line segment.Adopt different marks respectively for the different types of event comprised in drawing event, then the mark of event of painting can comprise: the mark of the mark of brush color event, the mark of paintbrush width event, the mark of background color event, the mark of starting point event and terminating point event.Such as, a preferred embodiment based on 32-bit operating system is: employing is greater than the integer of 999999999 as various event flag, starting point event be labeled as 1000000000, terminating point event be labeled as 1000000001, brush color event be labeled as 1000000002, paintbrush width event be labeled as 1000000003, background color event be labeled as 1000000004.
In this step, sending side terminal equipment carries out initialization to each drawing event above-mentioned, by initialization procedure, defines the mark that each drawing event above-mentioned is corresponding.For the above-mentioned embodiment based on 32-bit operating system, sending side terminal equipment carries out the initialized concrete methods of realizing of drawing event and is:
Public final static int START_DRAW=1000000000; // starting point event is set be labeled as 1000000000.
Public final static int END_DRAW=1000000001; // terminating point event is set be labeled as 1000000001.
Public final static int SET_STROKE_COLOR=1000000002; // brush color event is set be labeled as 1000000002.
Public final static int SET_STROKE_WIDTH=1000000003; // paintbrush width event is set be labeled as 1000000003.
Public final static int SET_BACK_COLOR=1000000004; // background colour event is set be labeled as 1000000004.
In this step, sending side terminal equipment also carries out initialization to drawing cell array.This drawing cell array adopts integer (int) array, by this drawing cell array referred to as DU (Draw Unit).In this step, initialization one is for recording the DU of current handwritten content.Particularly, in one preferably embodiment, the method for initialization DU is:
Int cDUlength=102400; // initialization array size
Int cDUsize=0; // current recording position
Int [] currentDU=new int [cDUlength]; // initialization array
The above-mentioned execution sequence carrying out initialized process to drawing event and carry out between initialized process DU is unrestricted, can first perform wherein any one or the two perform simultaneously.
After the initialization completing DU, the mark of above-mentioned drawing event, the drawing data of event and the data of Bezier line segment are stored in DU.
Particularly, the data of event of painting comprise: the x coordinate figure of the x coordinate figure of the RGB color code that brush color is corresponding, pixel value that paintbrush width is corresponding, RGB color code that background color is corresponding, starting point and y coordinate figure, terminating point and y coordinate figure etc.When storing the data of the mark of drawing event and drawing event to DU, be the position that the data of various different types of drawing event are default different respectively in DU.In one preferably embodiment, the predeterminated position of the RGB color code that brush color is corresponding is positioned at latter one of the mark of brush color event; The predeterminated position of the pixel value that paintbrush width is corresponding is positioned at latter one of the mark of paintbrush width event; The predeterminated position of the RGB color code that background color is corresponding is positioned at latter one of the mark of background color event; The predeterminated position of the x coordinate figure of starting point is positioned at latter one of the mark of starting point event, and the predeterminated position of the y coordinate figure of starting point is positioned at the Section 2 after the mark of starting point event; The predeterminated position of the x coordinate figure of terminating point is positioned at latter one of the mark of terminating point event, and the predeterminated position of the y coordinate figure of terminating point is positioned at the Section 2 after the mark of terminating point event.
In a handwritten content, one or Bezier line segment more than one can be comprised, in DU, record the data of each Bezier line segment respectively.Still for above-mentioned 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 of User Identity (Identity is called for short ID) and user ID array.Original drawing dimension information can comprise: the maximum ordinate of the maximum horizontal ordinate of original drawing paper, the maximum ordinate of original drawing paper, the minimum horizontal ordinate of original handwritten content, the minimum ordinate of original handwritten content, the maximum horizontal ordinate of original handwritten content and original handwritten content.This drawing cell array is the drawing cell array after above-mentioned steps 202 processes, and stores the mark of drawing event, the drawing data of event and the data of Bezier line segment in this array.
Table 1 is binary file format table.Particularly, in one preferably embodiment, binary file can adopt the form recorded in table 1.Store with binary file, file the 1st segment length is 4 bytes (byte), for the length information of recording user ID; File the 2nd segment length is the length of user ID, for recording user ID; In file the 3rd section to the 8th section, the length of each section is 4 bytes, records the maximum ordinate of the maximum horizontal ordinate of original drawing paper, the maximum ordinate of original drawing paper, the minimum horizontal ordinate of original handwritten content, the minimum ordinate of original handwritten content, the maximum horizontal ordinate of original handwritten content and original handwritten content respectively; The 9th section of file starts for storing above-mentioned drawing cell array DU, in the mode of 1int=4byte, the item in DU is converted into successively byte write binary file, until all store complete by the item in DU.
Table 1. binary file format table
Step 204: sending side terminal equipment sends binary file to receiving side terminal equipment.
In the embodiment of the present 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, adopt mode one, after execution of step 203, store binary file, 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 handwrite messages message to receiving side terminal equipment, carries type of message mark 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 and there is agreement (Extensible Messagingand Presence Protocol is called for short XMPP) agreement transmission.An instantiation of the handwrite messages message of mode one is:
<message?id=″xc3S4-42″to=″juliet@cn.hotalk.com″from=″romeo@cn.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, the type of message that type=" application/du " is binary file identifies, and adopts specific type of message " application/du " to identify this binary file.
Step 204 is the optional step of the embodiment of the present invention two.The corresponding aforesaid way one of application scenario of the common handwrite messages that step 204 describes.Except the application scenario of the common handwrite messages that above-mentioned steps 204 describes, also there is the application scenario of Sharing Whiteboard message.In the application scenario of Sharing Whiteboard message, employing mode two substitutes aforesaid way one, sends handwritten content to take over party.For the situation adopting mode two, after step 202, perform following steps: sending side terminal equipment sends Sharing Whiteboard message packet to receiving side terminal equipment, in this Sharing Whiteboard message packet, carry type of message mark and the binary code stream of binary code stream.
Send the execution sequence of the step of Sharing Whiteboard message packet and above-mentioned steps 203 to receiving side terminal equipment above unrestricted, can perform simultaneously.When performing the above-mentioned step to receiving side terminal equipment transmission Sharing Whiteboard message packet, no longer perform above-mentioned steps 204.Mode two is applicable to the application scenario of Sharing Whiteboard message, transmits binary code stream in text message mode.This Sharing Whiteboard message packet can adopt XMPP to send.An instantiation of the Sharing Whiteboard message packet of mode two is:
<message?id=″xc3S4-42″to=″juliet@cn.hotalk.com″from=″romeo@cn.hotalk.com/android″type=″draw″><body>G*&TY3*Teg2Jo</body><thread>DAooyN</thread></message>
Wherein, the type of message that type=" draw " is binary code stream identifies, and adopts specific type of message " draw " to identify this binary code stream.
Aforesaid way one adopts common handwrite messages mode, after the content needing to send inputs by transmit leg user, then sends to take over party; Mode two adopts Sharing Whiteboard message mode, while transmit leg user carries out handwriting input, according to certain predeterminated frequency, the handwritten content of transmit leg user is sent to take over party immediately.Such as, " hello " printed words are sent by handwriting input.If adopt mode one, the method of above-mentioned steps 201 to step 203 is adopted to store the content of user's handwriting input, until after user's handwriting input " hello " two words all complete, the handwritten content according to comprising " hello " two words generates above-mentioned binary file and sends to take over party.If adopt mode two, such as transmission frequency is set to 1 second, then while user's handwriting input, the method of above-mentioned steps 201 to step 202 is adopted every 1 second, obtain the content of the handwriting input of user in this 1 second, adopt binary code stream to send to take over party drawing cell array corresponding for foregoing.
In the embodiment of the present invention two, array mode is adopted to store handwritten content and transmit, compared with storing the mode of handwritten content with existing employing picture file, the binary file that the array of carrying identical handwritten content is formed or the storage space shared by scale-of-two array are significantly less than the storage space shared by picture, therefore can save disk space, and a large amount of network traffics can be saved when transmitting.
Fig. 3 is the process flow diagram of the methods of exhibiting of the touch screen hand-writing content of the embodiment of the present invention three.As shown in Figure 3, the method comprises following process.
Step 301: obtain original drawing dimension information and drawing cell array.
Step 302: the data reading drawing curved segments corresponding to the mark of drawing event corresponding to handwritten content, the data of event of painting and handwritten content from drawing cell array.
In this step, the mark of drawing event is used to indicate the type of drawing event, the various events in mark painting process; The data of drawing event are concrete numerical value corresponding to the content of above-mentioned event.In one of the present invention preferably embodiment, this drawing curved segments specifically can adopt Bezier line segment.
Step 303: according to the Plotting data handwritten content of the mark of drawing event, the data of drawing event and drawing curved segments.
In the embodiment of the present invention three, obtain original drawing dimension information and drawing cell array, the drawing event of handwritten content and the data of drawing curved segments are read from this array, user is showed according to this event and Plotting data handwritten content, compared with showing the mode of handwritten content with existing employing picture file, the storage space shared by array carrying identical handwritten content is significantly less than the storage space shared by picture, therefore can save disk space, and a large amount of network traffics can be saved when transmitting.
Fig. 4 is the process flow diagram of the methods of exhibiting of the touch screen hand-writing content of the embodiment of the present invention four.In the embodiment of the present invention four, this drawing curved segments specifically adopts Bezier line segment.As shown in Figure 4, the 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 in the following ways one and mode two in any one realize this step.
Mode one: receiving side terminal equipment receives handwrite messages message from sending side terminal equipment, carries type of message mark 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 ordinate of the maximum horizontal ordinate of original drawing paper, the maximum ordinate of original drawing paper, the minimum horizontal ordinate of original handwritten content, the minimum ordinate of original handwritten content, the maximum horizontal ordinate of original handwritten content and original handwritten content.
Further, can also comprise in this binary file: user profile.Wherein, this user profile can comprise: the length information of user ID and user 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 XMPP to send.An instantiation of the handwrite messages message that employing mode one receives is:
<message?id=″xc3S4-42″to=″juliet@cn.hotalk.com″from=″romeo@cn.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, the type of message that type=" application/du " is binary file identifies, and receiving side terminal equipment, according to specific type of message " application/du " mark, knows that the file that this message carries is binary file.Particularly, one preferably embodiment is that the form of this binary file is as shown in table 1.
Mode two: receiving side terminal equipment receives Sharing Whiteboard message packet from sending side terminal equipment, carries type of message mark 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 ordinate of the maximum horizontal ordinate of original drawing paper, the maximum ordinate of original drawing paper, the minimum horizontal ordinate of original handwritten content, the minimum ordinate of original handwritten content, the maximum horizontal ordinate of original handwritten content and original handwritten content.
Alternatively, can also comprise in this binary code stream: user profile.Wherein, this user profile can comprise: the length information of user ID and user ID array.
Mode two is applicable to the application scenario of Sharing Whiteboard message, transmits this binary code stream in text message mode.This Sharing Whiteboard message packet can adopt XMPP to send.An instantiation of the Sharing Whiteboard message packet that employing mode two receives is:
<message?id=″xc3S4-42″to=″juliet@cn.hotalk.com″from=″romeo@cn.hotalk.com/android″type=″draw″><body>G*&TY3*Teg2Jo</body><thread>DAooyN</thread></message>
Wherein, the type of message that type=" draw " is binary code stream identifies, and receiving side terminal equipment, according to specific type of message " draw " mark, knows that this message carries binary code stream.
Step 402: receiving side terminal equipment reads the data of Bezier line segment corresponding to the mark of drawing event corresponding to handwritten content, the data of drawing event and handwritten content from drawing cell array.
Drawing event can comprise: brush color event, paintbrush width event, background color event, starting point event and terminating point event.
In this step, still for the preferred embodiment in the embodiment of the present invention two, for based on 32-bit operating system, adopt the integer being greater than 999999999 as various event flag.When to read an entry value be 1000000000 from drawing cell array, obtain the mark that this is starting point event; When to read an entry value be 1000000001 from drawing cell array, obtain the mark that this is terminating point event; When to read an entry value be 1000000002 from drawing cell array, obtain the mark that this is brush color event; When to read an entry value be 1000000003 from drawing cell array, obtain the mark that this is paintbrush width event; When to read an entry value be 1000000004 from drawing cell array, obtain the mark that this is background color event.When reading an entry value and be less than 1000000000 from drawing cell array, obtain the data that this is Bezier line segment.
Step 403: receiving side terminal equipment is according to the mark of drawing event, the data of event of painting and the Plotting data handwritten content of Bezier line segment.
In this step, following process can be comprised.
The first step, according to the maximum 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, the maximum horizontal ordinate of original handwritten content and original handwritten content, obtain zooming parameter.
Represent zooming parameter with " zoomsize ", the concrete grammar of the first step can comprise: first define zooming parameter, such as: 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, new zooming parameter value is determined.The value of this zooming parameter must be greater than 0, does not have upper limit requirement.
On this basis, broadcasting speed parameter can also be defined.This broadcasting speed parameter is perform the thread of this handwritten content methods of exhibiting or the dormancy time of process.Represent this speed parameter with " sleepTime ", an embodiment of definition broadcasting speed parameter is: sleepTime=60*zoomsize (millisecond).Further, according to the setting of user, the value of this broadcasting speed parameter can be upgraded at any time.The value of this broadcasting speed parameter must be more than or equal to 0, does not have upper limit requirement.By the setting of broadcasting speed parameter, the speed of drawing Bezier line segment can be adjusted, thus can animation effect be produced, according to sequential write Dynamic Display handwritten content, writing process is presented to the user of take over party.When the value of this broadcasting speed parameter is 0, will not animation process be embodied, directly show end product.
Second step, according to zooming parameter, the mark of drawing event, the data of event of painting and the Plotting data handwritten content of Bezier line segment.
The concrete method for drafting of second step comprises: according to the mark of brush color event and the data of brush color event, arrange brush color; According to the mark of paintbrush width event and the data of paintbrush width event, paintbrush width is set; According to the mark of background color event and the data of background color event, background color is set; According to the mark of starting point event, the data of starting point event and zooming parameter, draw starting point; According to the mark of terminating point event, the data of terminating point event and zooming parameter, draw terminating point; According to data and the zooming parameter of Bezier line segment, draw Bezier.
Particularly, still for the preferred embodiment in the embodiment of the present invention two, definition current read position i=0, starts to read DU [i], until time i is more than or equal to DU array length.
When the value reading DU [i] is 1000000000, the mark getting starting point event is described, then first resets path; Then x=DU [i+1] and y=DU [i+2] is read; Draw point (x*zoomsize, y*zoomsize) again; Then adopt following statement that this point is put into path path moveTo (x*zoomsize, y*zoomsize); Finally current read position is moved 3 backward in DU, i.e. i=i+3.
When the value reading DU [i] is 1000000001, the mark getting terminating point event is described, then reads x=DU [i+1] and y=DU [i+2]; Then point (x*zoomsize, y*zoomsize) is drawn; Then adopt following statement that this point is put into path: path lineTo (x*zoomsize, y*zoomsize); Then this path is drawn; Reset path again; Finally current read position is moved 3 backward in DU, i.e. i=i+3.
When the value reading DU [i] is 1000000002, the mark getting brush color event is described, then reads brush color: newcolor=DU [i+1] from the next item down of current location; Then brush color is set to the color that the RGB parameter of the numeric representation read is corresponding; Finally current read position is moved 2 backward in DU, i.e. i=i+2.
When the value reading DU [i] is 1000000003, the mark getting paintbrush width event is described, then reads paintbrush width from the next item down of current location: newwidth=DU [i+1]; Then paintbrush width is set to the pixel that the product of numerical value and the zooming parameter read is corresponding; Finally current read position is moved 2 backward in DU, i.e. i=i+2.
When the value reading DU [i] is 1000000004, the mark getting background color event is described, then reads background color: newcolor=DU [i+1] from the next item down of current location; Then background color is set to the color that the RGB parameter of the numeric representation read is corresponding; Finally current read position is moved 2 backward in DU, i.e. i=i+2.
When the value reading DU [i] is less than 1000000000, the data getting Bezier line segment are described, then from current location forward two read before any coordinate and from current location backward two read after any coordinate, that is: X1=DU [i-2], Y1=DU [i-1], X2=DU [i], Y2=DU [i+1]; Then, with (X1*zoomsize, Y1*zoomsize) for starting point, with ((X1+X2)/2) * zoomsize, ((Y1+Y2)/2) * zoomsize) be terminating point, draw Bezier; Finally current read position 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 read from drawing cell array does not belong to the data of the mark of drawing event or Bezier line segment, continue the next item down reading described drawing cell array.
Particularly, still for the preferred embodiment in the embodiment of the present invention two, when the value reading DU [i] is greater than 1000000004, illustrate current get neither the mark of the mark of the mark of brush color event, paintbrush width event, the mark of background color event, the mark of starting point event or terminating point event, neither the data of Bezier line segment, namely when currentitem does not belong to the data of the mark of drawing event or Bezier line segment, then continue the next item down reading drawing cell array, that is: Number=DU [i+1]; I=i+1+Number.By this step, realize the expansion faced the future, if increase new event in handwritten content methods of exhibiting, then can increase a parameter, this parameter is for " Number ", and this parameter is in order to illustrate that the mark of the event newly increased needs the item number in the DU taken, if the handwritten content methods of exhibiting of current employing cannot resolve this event newly increased, then only can read this Number parameter, then skip the item of current reading, continue the next item down reading drawing cell array.
In the embodiment of the present invention four, by the parsing to binary file or binary code stream, the drawing event of handwritten content and the data of Bezier line segment are read from array wherein, user is showed according to this event and Plotting data handwritten content, the binary file formed due to the array of carrying identical handwritten content or the storage space shared by binary code stream are significantly less than the storage space shared by picture, therefore can save disk space, and a large amount of network traffics can be saved when transmitting.Further, by arranging broadcasting speed parameter when drawing Bezier line segment, drafting speed can be adjusted, thus produce animation effect, according to sequential write Dynamic Display handwritten content, writing process is presented to the user of take over party.
Fig. 5 is the structural representation of the terminal device of the embodiment of the present invention five.As shown in Figure 5, this equipment at least comprises: handwritten content processing unit 51, array manipulation unit 52 and document handling unit 53.
Wherein, handwritten content processing unit 51 is for obtaining drawing event corresponding to handwritten content, drawing curved segments, user profile and original drawing dimension information.In one of the present invention preferably embodiment, this drawing curved segments specifically can adopt Bezier line segment.
Array manipulation unit 52 is for being stored into drawing cell array by the data of the mark of above-mentioned drawing event, above-mentioned drawing event and the data of above-mentioned drawing curved segments, the mark of drawing event is used to indicate the type of drawing event, and the data of drawing event are concrete numerical value corresponding to the content of drawing event.
Document handling unit 53 is for generating and storing 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 event comprises: brush color event, paintbrush width event, background color event, starting point event and terminating point event.Above-mentioned user profile comprises: the length information of User Identity ID and user ID array.Above-mentioned original drawing size packets of information is drawn together: the maximum ordinate of the maximum horizontal ordinate of original drawing paper, the maximum ordinate of original drawing paper, the minimum horizontal ordinate of original handwritten content, the minimum ordinate of original handwritten content, the maximum horizontal ordinate of original handwritten content and original handwritten content.
On the basis of technique scheme, further, the first transmitting element 54 can also be comprised in this equipment.This first transmitting element 54 is for sending handwrite messages message to receiving side terminal equipment.The type of message mark of above-mentioned binary file and above-mentioned binary file is carried in above-mentioned handwrite messages message.
On the basis of technique scheme, further, the second transmitting element 55 can also be comprised in this equipment.This second transmitting element 55 is for sending Sharing Whiteboard message packet to receiving side terminal equipment.Carry the type of message mark of binary code stream and above-mentioned binary code stream in 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 present invention five, handwritten content processing unit extracts the data of drawing event and drawing curved segments from handwritten content, above-mentioned event and data are recorded in array by array manipulation unit,, document handling unit generates binary file storing according to this array, compared with storing the mode of handwritten content with existing employing picture file, storage space shared by the binary file that the array of carrying identical handwritten content is formed is significantly less than the storage space shared by picture, therefore can save disk space.Further, adopting the said equipment to store handwritten content, when needing the content of this storage to be sent to take over party, a large amount of network traffics can be saved.
Fig. 6 is the structural representation of the terminal device of the embodiment of the present invention six.As shown in Figure 6, this equipment at least comprises: information receiving unit 61, data-reading unit 62 and drawing unit 63.
Wherein, information receiving unit 61 is for obtaining original drawing dimension information and drawing unit 63 array.
Data-reading unit 62 for reading the data of drawing curved segments corresponding to the mark of drawing event corresponding to handwritten content, the data of above-mentioned drawing event and above-mentioned handwritten content from above-mentioned drawing unit 63 array, the mark of drawing event is used to indicate the type of drawing event, and the data of drawing event are concrete numerical value corresponding to the content of drawing event.In one of the present invention preferably embodiment, this drawing curved segments specifically can adopt Bezier line segment.
The drawing data of unit 63 for the mark according to above-mentioned drawing event, above-mentioned drawing event and the above-mentioned handwritten content of Plotting data of above-mentioned drawing curved segments.
On the basis of technique scheme, particularly, above-mentioned original drawing size packets of information is drawn together: the maximum ordinate of the maximum horizontal ordinate of original drawing paper, the maximum ordinate of original drawing paper, the minimum horizontal ordinate of original handwritten content, the minimum ordinate of original handwritten content, the maximum horizontal ordinate of original handwritten content and original handwritten content.Above-mentioned drawing event comprises: brush color event, paintbrush width event, background color event, starting point event and terminating point event.
On the basis of technique scheme, particularly, above-mentioned drawing unit 63, specifically for the maximum ordinate of the minimum ordinate of the minimum horizontal ordinate of the maximum ordinate of the maximum horizontal ordinate according to above-mentioned original drawing paper, original drawing paper, original handwritten content, original handwritten content, the maximum horizontal ordinate of original handwritten content and original handwritten content, obtains zooming parameter; According to the mark of above-mentioned brush color event and the data of brush color event, brush color is set; According to the mark of above-mentioned paintbrush width event and the data of paintbrush width event, paintbrush width is set; According to the mark of above-mentioned background color event and the data of background color event, background color is set; According to the mark of above-mentioned starting point event, the data of starting point event and above-mentioned zooming parameter, draw starting point; According to the mark of above-mentioned terminating point event, the data of terminating point event and above-mentioned zooming parameter, draw terminating point; According to data and the above-mentioned zooming parameter of above-mentioned drawing curved segments, draw drawing curve.
On the basis of technique scheme, further, above-mentioned drawing unit 63 is not also specifically for belonging to the data of the mark of above-mentioned drawing event and above-mentioned drawing curved segments during at the currentitem read from above-mentioned drawing unit 63 array, continue the next item down reading above-mentioned drawing unit 63 array.
On the basis of technique scheme, particularly, above-mentioned information receiving unit 61 is specifically for receiving handwrite messages message from sending side terminal equipment, the type of message mark of binary file and above-mentioned binary file is carried in above-mentioned handwrite messages message, above-mentioned binary file comprises: user profile, above-mentioned original drawing dimension information and above-mentioned drawing unit 63 array, above-mentioned user profile comprises: the length information of User Identity ID and user ID array.
Or, above-mentioned information receiving unit 61 is specifically for receiving Sharing Whiteboard message packet from sending side terminal equipment, carry the type of message mark of binary code stream and above-mentioned binary code stream in above-mentioned Sharing Whiteboard message packet, above-mentioned binary code stream comprises original drawing dimension information and above-mentioned drawing unit 63 array.
In the embodiment of the present invention six, the original drawing dimension information obtained according to information receiving unit and drawing cell array, data-reading unit reads the drawing event of handwritten content and the data of drawing curved segments from the array of this file, drawing unit shows user according to this event and Plotting data handwritten content, compared with showing the mode of handwritten content with existing employing picture file, the storage space shared by array carrying identical handwritten content is significantly less than the storage space shared by picture, therefore disk space can be saved, and a large amount of network traffics can be saved when transmitting.
The concrete executive mode of each component units of the terminal device of the embodiment of the present invention five can with reference to the record of the embodiment of the present invention one and the embodiment of the present invention two, and the concrete executive mode of each component units of the terminal device of the embodiment of the present invention six can with reference to the record of the embodiment of the present invention three and the embodiment of the present invention four.Further, 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 present invention six can be arranged with same terminal device simultaneously.
It should be noted that: for aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by 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 instructions all belongs to preferred embodiment, and involved 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, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that programmed instruction is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (16)

1. a storage means for touch screen hand-writing content, is characterized in that, comprising:
Obtain drawing event corresponding to handwritten content, drawing curved segments, user profile and original drawing dimension information, wherein, described drawing event comprises: brush color event, paintbrush width event, background color event, starting point event and terminating point event, and described original drawing size packets of information is drawn together: the maximum ordinate of the maximum horizontal ordinate of original drawing paper, the maximum ordinate of original drawing paper, the minimum horizontal ordinate of original handwritten content, the minimum ordinate of original handwritten content, the maximum horizontal ordinate of original handwritten content and original handwritten content;
The data of the mark of described drawing event, described drawing event and the data of described drawing curved segments are stored into drawing cell array, the mark of described drawing event is used to indicate the type of described drawing event, and the data of described drawing event are concrete numerical value corresponding to the content of described drawing event;
Generate and store binary file, described binary file comprises: described user profile, described original drawing dimension information and described drawing cell array.
2. method according to claim 1, is characterized in that,
Described user profile comprises: the length information of User Identity ID and user ID array.
3. method according to claim 1 and 2, is characterized in that, described in generate and store binary file after, also comprise:
Send handwrite messages message to receiving side terminal equipment, in described handwrite messages message, carry the type of message mark of described binary file and described binary file.
4. method according to claim 1 and 2, is characterized in that, described the data of the mark of described drawing event, described drawing event and the data of described drawing curved segments are stored into drawing cell array after, also comprise:
Sharing Whiteboard message packet is sent to receiving side terminal equipment, carry the type of message mark of binary code stream and described binary code stream in described Sharing Whiteboard message packet, described binary code stream comprises described original drawing dimension information and described drawing cell array.
5. a methods of exhibiting for touch screen hand-writing content, is characterized in that, comprising:
Obtain original drawing dimension information and drawing cell array, wherein, described original drawing size packets of information is drawn together: the maximum ordinate of the maximum horizontal ordinate of original drawing paper, the maximum ordinate of original drawing paper, the minimum horizontal ordinate of original handwritten content, the minimum ordinate of original handwritten content, the maximum horizontal ordinate of original handwritten content and original handwritten content;
The data of drawing curved segments corresponding to the mark of drawing event corresponding to handwritten content, the data of described drawing event and described handwritten content are read from described drawing cell array, the mark of described drawing event is used to indicate the type of described drawing event, the data of described drawing event are concrete numerical value corresponding to the content of described drawing event, wherein, described drawing event comprises: brush color event, paintbrush width event, background color event, starting point event and terminating point event;
Handwritten content according to the Plotting data of the mark of described drawing event, the data of described drawing event and described drawing curved segments.
6. method according to claim 5, is characterized in that, described in the described mark according to described drawing event, the data of described drawing event and the Plotting data of described drawing curved segments, handwritten content comprises:
According to the maximum ordinate of the minimum ordinate of the minimum horizontal ordinate of the maximum ordinate of the maximum horizontal ordinate of described original drawing paper, original drawing paper, original handwritten content, original handwritten content, the maximum horizontal ordinate of original handwritten content and original handwritten content, obtain zooming parameter;
According to the mark of described brush color event and the data of brush color event, brush color is set;
According to the mark of described paintbrush width event and the data of paintbrush width event, paintbrush width is set;
According to the mark of described background color event and the data of background color event, background color is set;
According to the mark of described starting point event, the data of starting point event and described zooming parameter, draw starting point;
According to the mark of described terminating point event, the data of terminating point event and described zooming parameter, draw terminating point;
According to data and the described zooming parameter of described drawing curved segments, draw drawing curve.
7. method according to claim 6, is characterized in that, described in the described mark according to described drawing event, the data of described drawing event and the Plotting data of described drawing curved segments, handwritten content also comprises:
When the currentitem read from described drawing cell array does not belong to the data of the mark of described drawing event and described drawing curved segments, continue the next item down reading described drawing cell array.
8. according to the method in claim 5 to 7 described in any one, it is characterized in that, the original drawing dimension information of described acquisition and drawing cell array comprise:
Handwrite messages message is received from sending side terminal equipment, the type of message mark of binary file and described binary file is carried in described handwrite messages message, described binary file comprises: user profile, described original drawing dimension information and described drawing cell array, and described user profile comprises: the length information of User Identity ID and user ID array;
Or, Sharing Whiteboard message packet is received from sending side terminal equipment, carry the type of message mark of binary code stream and described binary code stream in described Sharing Whiteboard message packet, described binary code stream comprises original drawing dimension information and described drawing cell array.
9. a memory storage for touch screen hand-writing content, is characterized in that, comprising:
Handwritten content processing unit, for obtaining drawing event corresponding to handwritten content, drawing curved segments, user profile and original drawing dimension information, wherein, described drawing event comprises: brush color event, paintbrush width event, background color event, starting point event and terminating point event, described original drawing size packets of information is drawn together: the maximum horizontal ordinate of original drawing paper, the maximum ordinate of original drawing paper, the minimum horizontal ordinate of original handwritten content, the minimum ordinate of original handwritten content, the maximum horizontal ordinate of original handwritten content and the maximum ordinate of original handwritten content,
Array manipulation unit, for the data of the mark of described drawing event, described drawing event and the data of described drawing curved segments are stored into drawing cell array, the mark of described drawing event is used to indicate the type of described drawing event, and the data of described drawing event are concrete numerical value corresponding to the content of described drawing event;
Document handling unit, for generating and storing binary file, described binary file comprises: described user profile, described original drawing dimension information and described drawing cell array.
10. device according to claim 9, is characterized in that,
Described user profile comprises: the length information of User Identity ID and user ID array.
11. devices according to claim 9 or 10, is characterized in that, also comprise:
First transmitting element, for sending handwrite messages message to receiving side terminal equipment, carries the type of message mark of described binary file and described binary file in described handwrite messages message.
12. devices according to claim 9 or 10, is characterized in that, also comprise:
Second transmitting element, for sending Sharing Whiteboard message packet to receiving side terminal equipment, carry the type of message mark of binary code stream and described binary code stream in described Sharing Whiteboard message packet, described binary code stream comprises described original drawing dimension information and described drawing cell array.
The exhibiting device of 13. 1 kinds of touch screen hand-writing contents, is characterized in that, comprising:
Information receiving unit, for obtaining original drawing dimension information and drawing cell array, wherein, described original drawing size packets of information is drawn together: the maximum ordinate of the maximum horizontal ordinate of original drawing paper, the maximum ordinate of original drawing paper, the minimum horizontal ordinate of original handwritten content, the minimum ordinate of original handwritten content, the maximum horizontal ordinate of original handwritten content and original handwritten content;
Data-reading unit, for reading the data of drawing curved segments corresponding to the mark of drawing event corresponding to handwritten content, the data of described drawing event and described handwritten content from described drawing cell array, the mark of described drawing event is used to indicate the type of described drawing event, the data of described drawing event are concrete numerical value corresponding to the content of described drawing event, wherein, described drawing event comprises: brush color event, paintbrush width event, background color event, starting point event and terminating point event;
Drawing unit, for handwritten content described in the data of the mark according to described drawing event, described drawing event and the Plotting data of described drawing curved segments.
14. devices according to claim 13, is characterized in that,
Described drawing unit, specifically for the maximum ordinate of the minimum ordinate of the minimum horizontal ordinate of the maximum ordinate of the maximum horizontal ordinate according to described original drawing paper, original drawing paper, original handwritten content, original handwritten content, the maximum horizontal ordinate of original handwritten content and original handwritten content, obtains zooming parameter; According to the mark of described brush color event and the data of brush color event, brush color is set; According to the mark of described paintbrush width event and the data of paintbrush width event, paintbrush width is set; According to the mark of described background color event and the data of background color event, background color is set; According to the mark of described starting point event, the data of starting point event and described zooming parameter, draw starting point; According to the mark of described terminating point event, the data of terminating point event and described zooming parameter, draw terminating point; According to data and the described zooming parameter of described drawing curved segments, draw drawing curve.
15. devices according to claim 14, is characterized in that,
Described drawing unit is not also specifically for belonging to the data of the mark of described drawing event and described drawing curved segments during at the currentitem read from described drawing cell array, continue the next item down reading described drawing cell array.
16., according to claim 13 to the device described in any one in 15, is characterized in that,
Described information receiving unit is specifically for receiving handwrite messages message from sending side terminal equipment, the type of message mark of binary file and described binary file is carried in described handwrite messages message, described binary file comprises: user profile, described original drawing dimension information and described drawing cell array, and described user profile comprises: the length information of User Identity ID and user ID array;
Or, described information receiving unit is specifically for receiving Sharing Whiteboard message packet from sending side terminal equipment, carry the type of message mark of binary code stream and described binary code stream in described Sharing Whiteboard message packet, described binary code stream comprises original drawing dimension information and described 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 CN102663667A (en) 2012-09-12
CN102663667B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663667B (en) * 2012-03-28 2014-12-24 华为技术有限公司 Storage method and display method for handwritten content on touch screen, terminal equipment
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
CN106375300B (en) * 2016-08-30 2019-07-09 孙卓金 The network session transmission method of handwritten stroke
CN110806828B (en) * 2018-08-02 2023-11-07 珠海金山办公软件有限公司 Method and device for erasing PDF document content

Citations (5)

* 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
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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7385595B2 (en) * 2001-11-30 2008-06-10 Anoto Ab Electronic pen and method for recording of handwritten information
US20060167902A1 (en) * 2005-01-21 2006-07-27 Microsoft Corporation System and method for storing a document in a serial binary format
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 (5)

* 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
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

Also Published As

Publication number Publication date
CN102663667A (en) 2012-09-12
WO2013143471A1 (en) 2013-10-03

Similar Documents

Publication Publication Date Title
CN106056530B (en) Method and device for displaying picture content in application
CN108024079B (en) Screen recording method, device, terminal and storage medium
CN107943363B (en) Background image configuration method and device, interactive intelligent panel and storage medium
CN113368492B (en) Rendering method and device
CN102663667B (en) Storage method and display method for handwritten content on touch screen, terminal equipment
CN104199911A (en) Storage method and device for PPT
CN108733296B (en) Method, device and equipment for erasing handwriting
JP2013118612A (en) Screen capture method for mobile communication terminal
CN110070496A (en) Generation method, device and the hardware device of image special effect
CN107122104B (en) Data display method and device
CN105407313A (en) Video calling method, equipment and system
CN205281405U (en) Image recognition system based on augmented reality
CN110211484A (en) A kind of electronics price tag display methods, system and server and storage medium
CN103902294A (en) Browser image display method and terminal
CN204706020U (en) A kind of electronic white board projection interactive device
CN112506370B (en) Touch screen-based real-time storage recording method, device and storage medium
CN110659080B (en) Page display method and device, electronic equipment and storage medium
CN103294193A (en) Multi-terminal interaction method, device and system
CN113784067B (en) Character superposition method and device, storage medium and electronic device
WO2021196055A1 (en) Dot matrix graph display method and apparatus, electronic device, and system
CN104836892A (en) Information display method, information display device and information display terminal
CN113691756A (en) Video playing method and device and electronic equipment
CN107239246A (en) A kind of picture synchronous display method and system
CN201541287U (en) Mobile communication terminal having hand-written information sending function
CN111949826A (en) Method for adding and displaying article information in video, electronic equipment and storage medium

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