CN108763320A - A kind of writing note data storage method, device, terminal and storage medium - Google Patents
A kind of writing note data storage method, device, terminal and storage medium Download PDFInfo
- Publication number
- CN108763320A CN108763320A CN201810401108.XA CN201810401108A CN108763320A CN 108763320 A CN108763320 A CN 108763320A CN 201810401108 A CN201810401108 A CN 201810401108A CN 108763320 A CN108763320 A CN 108763320A
- Authority
- CN
- China
- Prior art keywords
- layer
- character
- painting canvas
- handwriting
- written handwriting
- 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.)
- Pending
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of writing note data storage method, device, terminal and storage medium, methods to include:Receive writing operation of the user on painting canvas;Corresponding written handwriting is shown on the painting canvas according to writing operation;When detecting that the preservation for preserving the written handwriting on the painting canvas operates, written handwriting file is generated according to the painting canvas and the written handwriting, to show the transmission of corresponding written handwriting and carry out written handwriting file when opening the written handwriting file;Wherein, the written handwriting file includes at least two levels, and the different data block in each level is separated by a spcial character, and the spcial character of different levels is different.The present invention can reduce the data volume of the written handwriting file of generation under the premise of keeping the editability of handwriting data, reduce required memory space.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of writing note data storage method, device, terminal and
Storage medium.
Background technology
Touch screen is popularized to human-computer interaction, and especially man-machine writing brings great improvement.Based on touch screen technology, user
It can freely be drawn, painted, be write on Touch Screen, and corresponding written handwriting will be generated on Touch Screen, and
User complete write after, the written handwriting can also be preserved, in case next time change, propagate or reappearing user writing or paint
Picture process, this is helpful to the reproduction and description of creation.
In the prior art, for the handwriting data of preservation user, there are mainly two types of methods:First, handwriting data is exported
Carry out into the file of picture format;Another be using XML or JSON serializing handwriting data preserve at text file or two into
File processed.First method due to export come be picture format file, only preserve the original presentation effect of person's handwriting, and lose
Original handwriting data is lost, user, which can not identify the handwriting, to modify or edit;And second method is by restoring the number stored
According to original visual effect can also be presented, and all handwriting information data are not lost, but there are the shortcomings that generation number
It is larger according to measuring, it is unfavorable for storage and transmission.
Invention content
In view of the above-mentioned problems, the purpose of the present invention is to provide a kind of writing note data storage method, device, terminal and
Storage medium can reduce the data volume of the written handwriting file of generation under the premise of keeping the editability of handwriting data, subtract
Few required memory space.
An embodiment of the present invention provides a kind of writing note data storage methods, including:
Receive writing operation of the user on painting canvas;
Corresponding written handwriting is shown on the painting canvas according to writing operation;
When detecting that the preservation for preserving the written handwriting on the painting canvas operates, according to the painting canvas and described
Written handwriting generates written handwriting file, to show corresponding written handwriting and progress when opening the written handwriting file
The transmission of written handwriting file;Wherein, the written handwriting file includes at least two levels, the different data in each level
Block is separated by a spcial character, and the spcial character of different levels is different.
Preferably, the data structure of the written handwriting file includes 8 levels;Wherein, first layer includes:Believe on head
Breath, painting canvas content;The second layer includes belonging to header information:Title, author's mark, author's title, creation time, Yi Jigui
Belong to painting canvas content:Painting canvas background, painting canvas width, painting canvas length, painting canvas figure layer set;Third layer includes belonging to painting canvas figure
Layer set:At least one painting canvas figure layer;4th layer includes belonging to each painting canvas figure layer:Figure layer title, person's handwriting lines collection
It closes;Layer 5 includes belonging to person's handwriting lines set:At least one person's handwriting lines;Layer 6 includes belonging to every person's handwriting line
Item:Pen type, pen tip cross-sectional length, pen tip section width, the writing color of pen, track point set;Layer 7 includes ownership
In track point set:At least one tracing point;8th layer includes belonging to each tracing point:The X values of point coordinates, point coordinates
Y value, point pressure coefficient value.
Preferably, the different data blocks in first layer use characteristic characterCharacter is separated;
Different data blocks in the second layer using characteristic character ", " character is separated;
Different data blocks in third layer are separated using characteristic character " | " character;
Different data blocks in 4th layer using characteristic character ":" character is separated;
Different data blocks in layer 5 using characteristic character ";" character is separated;
Different data blocks in layer 6 are separated using characteristic character " * " character;
Different data blocks in layer 7 are separated using characteristic character " & " character;
Different data blocks in 8th layer are separated using characteristic character ", " character.
Preferably, the painting canvas background is used 16 color value codes of ARGB and is started or used image with " # "
Base64 character strings are indicated;
The painting canvas width uses the string representation that unit is pixel integer;
The painting canvas height uses the string representation that unit is pixel integer;
The pen type uses the preset character representation for identifying different character strings;
The pen tip depth of section uses the string representation that unit is pixel integer;
The pen tip cross-sectional width uses the character string forms that unit is pixel integer;
The coordinate X values indicate horizontal pixel distance of the tracing point relative to the painting canvas upper left corner;
Coordinate Y value indicates vertical pixel distance of the tracing point relative to the painting canvas upper left corner;
The pressure coefficient value indicates the pressure rank or numerical value that pen tip detects in drawing process;
Author's mark, is used for a string of character strings of identified author;
The creation time is indicated using universal time;
The writing color of the pen is indicated using 16 color value codes of ARGB with " # " beginning.
The embodiment of the present invention additionally provides a kind of writing note data storage device, including:
Operation receiving unit is write, for receiving writing operation of the user on painting canvas;
Written handwriting display unit, for showing corresponding written handwriting on the painting canvas according to writing operation;
Written handwriting file generating unit detects that the writing for preserving the written handwriting on the painting canvas is grasped for working as
When making, written handwriting file is generated according to the painting canvas and the written handwriting, with when opening the written handwriting file
Show the transmission of corresponding written handwriting and carry out written handwriting file;Wherein, the written handwriting file includes at least two
A level, the different data block in each level are separated by a spcial character, and the spcial character of different levels is different.
Preferably, the written handwriting file includes 8 levels;Wherein, first layer includes:Header information, painting canvas content;
The second layer includes belonging to header information:Title, author's mark, author's title, creation time, and belong to painting canvas content
's:Painting canvas background, painting canvas width, painting canvas length, painting canvas figure layer set;Third layer includes belonging to painting canvas figure layer set:Extremely
A few painting canvas figure layer;4th layer includes belonging to each painting canvas figure layer:Figure layer title, person's handwriting lines set;Layer 5 packet
It includes and belongs to person's handwriting lines set:At least one person's handwriting lines;Layer 6 includes belonging to every person's handwriting lines:Class
Type, pen tip cross-sectional length, pen tip section width, the writing color of pen, track point set;Layer 7 includes belonging to track point set
It closes:At least one tracing point;8th layer includes belonging to each tracing point:The X values of point coordinates, press the Y value of point coordinates
Force coefficient value.
Preferably, the different data blocks in first layer use characteristic characterCharacter is separated;
Different data blocks in the second layer using characteristic character ", " character is separated;
Different data blocks in third layer are separated using characteristic character " | " character;
Different data blocks in 4th layer using characteristic character ":" character is separated;
Different data blocks in layer 5 using characteristic character ";" character is separated;
Different data blocks in layer 6 are separated using characteristic character " * " character;
Different data blocks in layer 7 are separated using characteristic character " & " character;
Different data blocks in 8th layer are separated using characteristic character ", " character.
Preferably, the painting canvas background is used 16 color value codes of ARGB and is started or used image with " # "
Base64 character strings are indicated;
The painting canvas width uses the string representation that unit is pixel integer;
The painting canvas height uses the string representation that unit is pixel integer;
The pen type uses the preset character representation for identifying different character strings;
The pen tip depth of section uses the string representation that unit is pixel integer;
The pen tip cross-sectional width uses the character string forms that unit is pixel integer;
The coordinate X values indicate horizontal pixel distance of the tracing point relative to the painting canvas upper left corner;
Coordinate Y value indicates vertical pixel distance of the tracing point relative to the painting canvas upper left corner;
The pressure coefficient value indicates the pressure rank or numerical value that pen tip detects in drawing process;
Author's mark, is used for a string of character strings of identified author;
The creation time is indicated using universal time;
The writing color of the pen is indicated using 16 color value codes of ARGB with " # " beginning.
The embodiment of the present invention additionally provides a kind of writing note data storage terminal, including processor, memory and deposits
Storage is in the memory and is configured as the computer program executed by the processor, and the processor executes the calculating
Such as above-mentioned writing note data storage method is realized when machine program.
The embodiment of the present invention additionally provides a kind of computer readable storage medium, and the computer readable storage medium includes
The computer program of storage, wherein control when the computer program is run and set where the computer readable storage medium
It is standby to execute such as above-mentioned writing note data storage method.
In the embodiment of the present invention, the data store organisation of the written handwriting file internal be include at least two levels,
Different data block in each level is separated by a spcial character, and the spcial character of different levels is different, in this way, with
The Data Serialization memory structure of XML or JSON is compared, and by spcial character come the different data block of lattice, reduces XML
Label substance and JSON key assignments and double quotation marks, therefore data storage and transmission quantity are greatly reduced, especially to gathering number
According to processing, can highly significant reduction storage data quantity, to save memory space, and reduce the time of transmission.
Description of the drawings
In order to illustrate more clearly of technical scheme of the present invention, attached drawing needed in embodiment will be made below
Simply introduce, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, general for this field
For logical technical staff, without creative efforts, other drawings may also be obtained based on these drawings.
Fig. 1 is the flow diagram for the written handwriting date storage method that first embodiment of the invention provides.
Fig. 2 is the hierarchy chart for the written handwriting file that first embodiment of the invention provides.
Fig. 3 is the data structure diagram for the written handwriting file that first embodiment of the invention provides.
Fig. 4 is the structural schematic diagram for the written handwriting data storage device that second embodiment of the invention provides.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1, first embodiment of the invention provides a kind of writing note data storage method, it can be by lettering pen
Data storage terminal is remembered to execute, and includes at least following steps:
S101 receives writing operation of the user on painting canvas.
In embodiments of the present invention, the writing note data storage terminal (hereinafter referred to as terminal) is with touch-sensitive display
The equipment of screen, for example, can be smart mobile phone, tablet computer, intelligent interaction tablet etc..
Wherein, corresponding writing software can be installed, user can be in the enterprising running hand of painting canvas of writing software in the terminal
Write operation, for example, carrying out writing operation using singly referring to be slided on painting canvas.
Certainly, it should be noted that carry out writing operation in addition to finger touch, lettering pen or other auxiliary also can be used
Apparatus for writing writes operation to execute, and the present invention is not specifically limited.
S102 shows corresponding written handwriting according to writing operation on the painting canvas.
In embodiments of the present invention, the terminal is operated according to the writing and is generated after receiving the writing operation
Corresponding written handwriting data, and drafting rendering is carried out according to written handwriting data, to show corresponding book on the painting canvas
Write person's handwriting;Wherein, the attribute (such as color, width etc.) of the written handwriting can be configured by user.
S103, when detect for preserve the written handwriting on the painting canvas preservation operate when, according to the painting canvas with
And the written handwriting generates written handwriting file, with shown when opening the written handwriting file corresponding written handwriting with
And carry out the transmission of written handwriting file;Wherein, the written handwriting file includes at least two levels, in each level not
Separated by a spcial character with data block, and the spcial character of different levels is different.
In embodiments of the present invention, if user is after completing to write operation, this writing can be operated and is protected
It deposits, such as user can click saving button, then the terminal can be according to the information of current painting canvas and the information of written handwriting
To generate written handwriting file.In this way, when user using the writing software when opening the written handwriting file, can obtain
Revisable written handwriting, the writing to reappearing user or drawing process, in addition, user can also be transferred to written handwriting text
Part gives other people, and the mode of transmission includes but not limited to the various modes such as wire transmission and wireless transmission.
It should be noted that in the present embodiment, the data structure of the written handwriting file internal be include at least two
A level, the different data block in each level are separated by a spcial character, and the spcial character of different levels is different, such as
This, by spcial character come the different data of lattice, reduces compared with the Data Serialization memory structure of XML or JSON
The label substance of XML and the key assignments of JSON and double quotation marks, therefore data storage and transmission quantity are greatly reduced, especially to set
The processing of data, can highly significant reduction storage data quantity, save memory space, and reduce the time of transmission.
Preferably, as shown in Fig. 2, the written handwriting file includes 8 levels;Wherein, first layer includes:Believe on head
Breath, painting canvas content;The second layer includes belonging to header information:Title, author's mark, author's title, creation time, Yi Jigui
Belong to painting canvas content:Painting canvas background, painting canvas width, painting canvas length, painting canvas figure layer set;Third layer includes belonging to painting canvas figure
Layer set:At least one painting canvas figure layer;4th layer includes belonging to each painting canvas figure layer:Figure layer title, person's handwriting lines collection
It closes;Layer 5 includes belonging to person's handwriting lines set:At least one person's handwriting lines;Layer 6 includes belonging to every person's handwriting line
Item:Pen type, pen tip cross-sectional length, pen tip section width, the writing color of pen, track point set;Layer 7 includes ownership
In track point set:At least one tracing point;8th layer includes belonging to each tracing point:The X values of point coordinates, point coordinates
Y value, point pressure coefficient value.
In the present embodiment, database at all levels can be used under type such as and be indicated:
Painting canvas background:Started with " # " using 16 color value codes of ARGB, if opaque white color code is #
The base64 character strings of ffffffff or image;
Painting canvas width:Unit be pixel integer character string forms such as:1366;
Painting canvas height:Unit be pixel integer character string forms such as:768;
Pen type:Different character string such as Pen or 1 are identified, it can internal agreement;
Pen tip depth of section:Unit be pixel integer character string forms such as:5;
Pen tip cross-sectional width:Unit be pixel integer character string forms such as:5;
Coordinate X values:Horizontal pixel distance relative to the painting canvas upper left corner;
Coordinate Y value:Vertical pixel distance relative to the painting canvas upper left corner;
Point pressure coefficient value:The pressure rank or number that pen tip is arrived in painting process Computer operating system or software detection
Value;
Author identifies:A string of character strings for identified author;
Creation time:Using universal time, time format is " when year-month-day:Point:The character string of second ";
The writing color of pen:Started with " # " using 16 color value codes of ARGB, as opaque white color code is:#
ffffffff;
It should be noted that as shown in figure 3, the separator of different data block at all levels can be determined in the following way
Justice:
Different data blocks in first layer use spcial characterIt is separated, then effect is:Header informationIt draws
Cloth content;
Different data blocks in the second layer using characteristic character ", " character is separated, then header information part effect
For:Title, author's mark, author's title, creation time;
Painting canvas content part effect is:Painting canvas background, painting canvas width, painting canvas length, painting canvas figure layer set;
Different data blocks in third layer are separated using characteristic character " | " character, here with three painting canvas figure layers
For illustrate effect:Painting canvas figure layer | painting canvas figure layer | painting canvas figure layer;
Different data blocks in 4th layer using characteristic character ":" character is separated, then effect is:Figure layer title:
Person's handwriting lines set;
Different data blocks in layer 5 using characteristic character ";" character is separated, here with three person's handwriting lines
For illustrate effect:Person's handwriting lines;Person's handwriting lines;Person's handwriting lines;
Different data blocks in layer 6 are separated using characteristic character " * " character, and effect is:Pen type * pen tips
The tracks the writing color * point set of cross-sectional length * pen tips section width *;
Different data blocks in layer 7 are separated using characteristic character " & " character, here with three tracing point points
For illustrate effect:Tracing point | tracing point | tracing point;
Different data blocks in 8th layer are separated using characteristic character ", " character, then effect is:The X of point coordinates
Value, the Y value of point coordinates, point pressure coefficient value.
However, it is to be understood that the spcial character of different layers can be replaced according to the actual needs, can also carry out
Free assembled arrangement, these schemes all within protection scope of the present invention, the above is only a kind of possible realization of the present invention
Mode, but should not be understood as limitation of the invention.
Illustrate the data mode of the written handwriting file internal of the present invention with an actual example below.
Illustrate a group organization data by the bottom herein:
1, tracing point
Each tracing point includes:The X values of point coordinates, the Y value of point coordinates, point pressure coefficient value;
The relevant information of tracing point is separated using spcial character ", ", then data mode is:
30.3,35.5,35.8
2. track point set
Including multiple tracing points, by taking three tracing points as an example, then it represents that be:Tracing point & tracing point & tracing points
Tracing point use " & " character separate, data shaped like:
30.3,35.5,35.8&30.3,35.5,35.8
3. person's handwriting lines
Including:The tracks stylus type * stylus tip cross-sectional length * stylus tip section width * stylus paintbrush color * point set
The different data block of person's handwriting lines uses " * " character to be split, and stylus paintbrush color uses ARGB color codes,
Data shaped like:
Pen*12*13*#ff886699aa*30.3,35.5,35.8&30.3,35.5,35.8
4. person's handwriting lines set
Including a plurality of person's handwriting lines, for 3, then it represents that be:Person's handwriting lines;Person's handwriting lines;Person's handwriting lines
The use of person's handwriting lines set ";" (English branch) character separates each person's handwriting lines data, data shaped like:
Pen*12*13*#ff886699aa*30.3,35.5,35.8&30.3,35.5,35.8;Pen*12*13*#
ff886699aa*30.3,35.5,35.8&30.3,35.5,35.8
5. painting canvas figure layer
Figure layer title:Person's handwriting lines set
Data block in painting canvas figure layer use ":" (Chinese colon) character separates, data shaped like:
Figure layer title:Pen*12*13*#ff886699aa*30.3,35.5,35.8&30.3,35.5,35.8;Pen*12*
13*#ff886699aa*30.3,35.5,35.8&30.3,35.5,35.8
6. painting canvas figure layer set
Including multiple painting canvas figure layers, for two:Painting canvas figure layer | painting canvas figure layer
Painting canvas figure layer collective data use " | " character each figure layer data are separated, data shaped like:
Figure layer title:Pen*12*13*#ff886699aa*30.3,35.5,35.8&30.3,35.5,35.8;Pen*12*
13*#ff886699aa*30.3,35.5,35.8&30.3,35.5,35.8 | figure layer title:Pen*12*13*#ff886699aa*
30.3,35.5,35.8&30.3,35.5,35.8;Pen*12*13*#ff886699aa*30.3,35.5,35.8&30.3,35.5,
35.8
7. painting canvas content
Including:Painting canvas background, painting canvas width, picture degree length, painting canvas figure layer set
Painting canvas cloth hold and use ", " (Chinese pause mark) character separates every data block, data shaped like:
#bb667788,1366,768, figure layer title:Pen*12*13*#ff886699aa*30.3,35.5,35.8&
30.3,35.5,35.8;Pen*12*13*#ff886699aa*30.3,35.5,35.8&30.3,35.5,35.8 | figure layer title:
Pen*12*13*#ff886699aa*30.3,35.5,35.8&30.3,35.5,35.8;Pen*12*13*#ff886699aa*
30.3,35.5,35.8&30.3,35.5,35.8
8. header information
Including:Title, author's mark, author's title, creation time
Header information belongs to same layer with painting canvas content, therefore also use ", " (Chinese pause mark) character is by every data block
Separate, data shaped like:
Title, Yuweirong, I be author's title, 2017-9-29 15:06
9. written handwriting file
Header informationPainting canvas content
The next stage data block of written handwriting file usesCharacter separates, data shaped like:
Title, Yuweirong, I be author's title, 2017-9-29 15:06#bb667788、1366、768、
Figure layer title:Pen*12*13*#ff886699aa*30.3,35.5,35.8&30.3,35.5,35.8;Pen*12*13*#
Ff886699aa*30.3,35.5,35.8&30.3,35.5,35.8 | figure layer title:Pen*12*13*#ff886699aa*30.3,
35.5,35.8&30.3,35.5,35.8;Pen*12*13*#ff886699aa*30.3,35.5,35.8&30.3,35.5,35.8
The above written handwriting file for illustrating the present invention.
Referring to Fig. 4, second embodiment of the invention additionally provides a kind of writing note data storage device comprising:
Operation receiving unit 10 is write, for receiving writing operation of the user on painting canvas;
Written handwriting display unit 20, for showing corresponding lettering pen on the painting canvas according to writing operation
Mark;
Written handwriting file generating unit 30, for working as the preservation detected for preserving the written handwriting on the painting canvas
When operation, written handwriting file is generated according to the painting canvas and the written handwriting, to open the written handwriting file
When show the transmission of corresponding written handwriting and carry out written handwriting file;Wherein, the written handwriting file includes at least
Two levels, the different data block in each level are separated by a spcial character, and the spcial character of different levels is different.
Third embodiment of the invention additionally provides a kind of writing note data storage terminal.The lettering pen of the embodiment counts
Include according to storage terminal:Processor, memory and it is stored in the meter that can be run in the memory and on the processor
Calculation machine program, such as writing software.The processor realizes above-mentioned each writing note data when executing the computer program
Step in storage method embodiment, such as step S11 shown in FIG. 1.Alternatively, the processor executes the computer program
The function of each module/unit in the above-mentioned each device embodiments of Shi Shixian.
Illustratively, the computer program can be divided into one or more module/units, one or more
A module/unit is stored in the memory, and is executed by the processor, to complete the present invention.It is one or more
A module/unit can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing institute
State implementation procedure of the computer program in the written handwriting data storage terminal.
The writing note data storage terminal can be desktop PC, notebook, palm PC and cloud service
The computing devices such as device.The writing note data storage terminal device may include, but be not limited only to, processor, memory.Ability
Field technique personnel are appreciated that above-mentioned component is only the example for writing note data storage terminal, do not constitute and disappear to asynchronous
The restriction for ceasing processing terminal equipment may include either combining certain components or difference than above-mentioned more or fewer components
Component, such as the asynchronous message processing terminal equipment can also include input-output equipment, network access equipment, bus
Deng.
Alleged processor can be central processing unit (Central Processing Unit, CPU), can also be it
His general processor, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng the processor is the control centre of the written handwriting data storage terminal, entire using various interfaces and connection
Write the various pieces of note data storage terminal.
The memory can be used for storing the computer program and/or module, and the processor is by running or executing
Computer program in the memory and/or module are stored, and calls the data being stored in memory, described in realization
Write the various functions of note data storage terminal.The memory can include mainly storing program area and storage data field,
In, storing program area can storage program area, application program (such as sound-playing function, image needed at least one function
Playing function etc.) etc.;Storage data field can be stored uses created data (such as audio data, phone directory according to mobile phone
Deng) etc..In addition, memory may include high-speed random access memory, can also include nonvolatile memory, such as firmly
Disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital,
SD) block, flash card (Flash Card), at least one disk memory, flush memory device or other volatile solid-states
Part.
Wherein, the writing note data stores terminal
If integrated module/unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can be stored in a computer read/write memory medium.Based on this understanding, the present invention realizes above-described embodiment side
All or part of flow in method can also instruct relevant hardware to complete, the computer by computer program
Program can be stored in a computer readable storage medium, and the computer program is when being executed by processor, it can be achieved that above-mentioned each
The step of a embodiment of the method.Wherein, the computer program includes computer program code, and the computer program code can
Think source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium can be with
Including:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disc, light of the computer program code can be carried
Disk, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random
Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer
The content that readable medium includes can carry out increase and decrease appropriate according to legislation in jurisdiction and the requirement of patent practice, such as
In certain jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier signal and telecommunication signal.
It should be noted that the apparatus embodiments described above are merely exemplary, wherein described be used as separating component
The unit of explanation may or may not be physically separated, and the component shown as unit can be or can also
It is not physical unit, you can be located at a place, or may be distributed over multiple network units.It can be according to actual
It needs that some or all of module therein is selected to achieve the purpose of the solution of this embodiment.In addition, device provided by the invention
In embodiment attached drawing, the connection relation between module indicates there is communication connection between them, specifically can be implemented as one or
A plurality of communication bus or signal wire.Those of ordinary skill in the art are without creative efforts, you can to understand
And implement.
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art
For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as
Protection scope of the present invention.
Claims (10)
1. a kind of writing note data storage method, which is characterized in that including:
Receive writing operation of the user on painting canvas;
Corresponding written handwriting is shown on the painting canvas according to writing operation;
When detecting that the preservation for preserving the written handwriting on the painting canvas operates, according to the painting canvas and the writing
Person's handwriting generates written handwriting file, to show corresponding written handwriting when opening the written handwriting file and be write
The transmission of person's handwriting file;Wherein, the written handwriting file includes at least two levels, and the different data block in each level is logical
It crosses a spcial character to separate, and the spcial character of different levels is different.
2. writing note data storage method according to claim 1, which is characterized in that the data of the written handwriting file
Structure includes 8 levels;Wherein, first layer includes:Header information, painting canvas content;The second layer includes belonging to header information:
Title, author's mark, author's title, creation time, and belong to painting canvas content:Painting canvas background, painting canvas width, painting canvas are long
Degree, painting canvas figure layer set;Third layer includes belonging to painting canvas figure layer set:At least one painting canvas figure layer;4th layer includes returning
Belong to each painting canvas figure layer:Figure layer title, person's handwriting lines set;Layer 5 includes belonging to person's handwriting lines set:At least
One person's handwriting lines;Layer 6 includes belonging to every person's handwriting lines:Pen type, pen tip cross-sectional length, pen tip section width,
Writing color, the track point set of pen;Layer 7 includes belonging to track point set:At least one tracing point;8th layer of packet
It includes and belongs to each tracing point:The X values of point coordinates, the Y value of point coordinates, point pressure coefficient value.
3. writing note data storage method according to claim 2, which is characterized in that
Different data blocks in first layer use characteristic characterCharacter is separated;
Different data blocks in the second layer using characteristic character ", " character is separated;
Different data blocks in third layer are separated using characteristic character " | " character;
Different data blocks in 4th layer using characteristic character ":" character is separated;
Different data blocks in layer 5 using characteristic character ";" character is separated;
Different data blocks in layer 6 are separated using characteristic character " * " character;
Different data blocks in layer 7 are separated using characteristic character " & " character;
Different data blocks in 8th layer are separated using characteristic character ", " character.
4. writing note data storage method according to claim 2, which is characterized in that
The painting canvas background using ARGB 16 color value codes and with " # " start or using image base64 character strings into
Row indicates;
The painting canvas width uses the string representation that unit is pixel integer;
The painting canvas height uses the string representation that unit is pixel integer;
The pen type uses the preset character representation for identifying different character strings;
The pen tip depth of section uses the string representation that unit is pixel integer;
The pen tip cross-sectional width uses the character string forms that unit is pixel integer;
The coordinate X values indicate horizontal pixel distance of the tracing point relative to the painting canvas upper left corner;
Coordinate Y value indicates vertical pixel distance of the tracing point relative to the painting canvas upper left corner;
The point pressure coefficient value indicates the pressure rank or numerical value that pen tip detects in drawing process;
Author's mark, is used for a string of character strings of identified author;
The creation time is indicated using universal time;
The writing color of the pen is indicated using 16 color value codes of ARGB with " # " beginning.
5. a kind of writing note data storage device, which is characterized in that including:
Operation receiving unit is write, for receiving writing operation of the user on painting canvas;
Written handwriting display unit, for showing corresponding written handwriting on the painting canvas according to writing operation;
Written handwriting file generating unit detects that the preservation for preserving the written handwriting on the painting canvas operates for working as
When, written handwriting file is generated according to the painting canvas and the written handwriting, to be shown when opening the written handwriting file
Show the transmission of corresponding written handwriting and carry out written handwriting file;Wherein, the written handwriting file includes at least two
Level, the different data block in each level are separated by a spcial character, and the spcial character of different levels is different.
6. writing note data storage device according to claim 5, which is characterized in that the data of the written handwriting file
Structure includes 8 levels;Wherein, first layer includes:Header information, painting canvas content;The second layer includes belonging to header information:
Title, author's mark, author's title, creation time, and belong to painting canvas content:Painting canvas background, painting canvas width, painting canvas are long
Degree, painting canvas figure layer set;Third layer includes belonging to painting canvas figure layer set:At least one painting canvas figure layer;4th layer includes returning
Belong to each painting canvas figure layer:Figure layer title, person's handwriting lines set;Layer 5 includes belonging to person's handwriting lines set:At least
One person's handwriting lines;Layer 6 includes belonging to every person's handwriting lines:Pen type, pen tip cross-sectional length, pen tip section width,
Writing color, the track point set of pen;Layer 7 includes belonging to track point set:At least one tracing point;8th layer of packet
It includes and belongs to each tracing point:The X values of point coordinates, the Y value of point coordinates, point pressure coefficient value.
7. writing note data storage device according to claim 6, which is characterized in that
Different data blocks in first layer use characteristic characterCharacter is separated;
Different data blocks in the second layer using characteristic character ", " character is separated;
Different data blocks in third layer are separated using characteristic character " | " character;
Different data blocks in 4th layer using characteristic character ":" character is separated;
Different data blocks in layer 5 using characteristic character ";" character is separated;
Different data blocks in layer 6 are separated using characteristic character " * " character;
Different data blocks in layer 7 are separated using characteristic character " & " character;
Different data blocks in 8th layer are separated using characteristic character ", " character.
8. writing note data storage device according to claim 6, which is characterized in that
The painting canvas background using ARGB 16 color value codes and with " # " start or using image base64 character strings into
Row indicates;
The painting canvas width uses the string representation that unit is pixel integer;
The painting canvas height uses the string representation that unit is pixel integer;
The pen type uses the preset character representation for identifying different character strings;
The pen tip depth of section uses the string representation that unit is pixel integer;
The pen tip cross-sectional width uses the character string forms that unit is pixel integer;
The coordinate X values indicate horizontal pixel distance of the tracing point relative to the painting canvas upper left corner;
Coordinate Y value indicates vertical pixel distance of the tracing point relative to the painting canvas upper left corner;
The point pressure coefficient value indicates the pressure rank or numerical value that pen tip detects in drawing process;
Author's mark, is used for a string of character strings of identified author;
The creation time is indicated using universal time;
The writing color of the pen is indicated using 16 color value codes of ARGB with " # " beginning.
9. a kind of writing note data stores terminal, which is characterized in that including processor, memory and be stored in the storage
In device and it is configured as the computer program executed by the processor, the processor is realized when executing the computer program
Writing note data storage method as described in any one of Claims 1-4.
10. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium includes the calculating of storage
Machine program, wherein equipment where controlling the computer readable storage medium when the computer program is run is executed as weighed
Profit requires the writing note data storage method described in any one of 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810401108.XA CN108763320A (en) | 2018-04-28 | 2018-04-28 | A kind of writing note data storage method, device, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810401108.XA CN108763320A (en) | 2018-04-28 | 2018-04-28 | A kind of writing note data storage method, device, terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108763320A true CN108763320A (en) | 2018-11-06 |
Family
ID=64008666
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810401108.XA Pending CN108763320A (en) | 2018-04-28 | 2018-04-28 | A kind of writing note data storage method, device, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108763320A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111314628A (en) * | 2020-03-17 | 2020-06-19 | 北京文香信息技术有限公司 | Method and device for converting infrared track into video stream, electronic whiteboard and storage medium |
CN111400692A (en) * | 2020-03-04 | 2020-07-10 | 宁波创控智能科技有限公司 | Electronic output system and method for hand-drawing graphics |
CN111858513A (en) * | 2020-07-22 | 2020-10-30 | 深圳市昇利扬科技有限公司 | Data storage format of digital ink handwriting |
CN111881904A (en) * | 2020-07-31 | 2020-11-03 | 城云科技(中国)有限公司 | Blackboard writing recording method and system |
CN112639700A (en) * | 2018-11-19 | 2021-04-09 | 深圳市柔宇科技股份有限公司 | Handwriting processing method, handwriting input device and computer readable storage medium |
CN114610222A (en) * | 2022-03-24 | 2022-06-10 | 深圳市电子商务安全证书管理有限公司 | Method and device for generating vertical screen handwritten signature, terminal equipment and storage medium |
CN114860094A (en) * | 2022-05-23 | 2022-08-05 | Oppo广东移动通信有限公司 | Data storage method and device, electronic equipment and storage medium |
CN115048023A (en) * | 2021-03-09 | 2022-09-13 | 广州视源电子科技股份有限公司 | Electronic note restoring method, device, medium and interactive panel |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1271407A2 (en) * | 2001-06-28 | 2003-01-02 | Microsoft Corporation | Method and system for representing and displaying digital ink |
CN105745608A (en) * | 2013-11-19 | 2016-07-06 | 株式会社和冠 | Method and system for ink data generation, ink data rendering, ink data manipulation and ink data communication |
CN106570919A (en) * | 2016-10-13 | 2017-04-19 | 深圳市创易联合科技有限公司 | Preservation method and restoration method of electronic handwriting |
-
2018
- 2018-04-28 CN CN201810401108.XA patent/CN108763320A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1271407A2 (en) * | 2001-06-28 | 2003-01-02 | Microsoft Corporation | Method and system for representing and displaying digital ink |
CN105745608A (en) * | 2013-11-19 | 2016-07-06 | 株式会社和冠 | Method and system for ink data generation, ink data rendering, ink data manipulation and ink data communication |
CN106570919A (en) * | 2016-10-13 | 2017-04-19 | 深圳市创易联合科技有限公司 | Preservation method and restoration method of electronic handwriting |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112639700A (en) * | 2018-11-19 | 2021-04-09 | 深圳市柔宇科技股份有限公司 | Handwriting processing method, handwriting input device and computer readable storage medium |
CN111400692A (en) * | 2020-03-04 | 2020-07-10 | 宁波创控智能科技有限公司 | Electronic output system and method for hand-drawing graphics |
CN111400692B (en) * | 2020-03-04 | 2023-12-08 | 宁波创控智能科技有限公司 | Electronic output system and method for hand-drawn pictures and texts |
CN111314628A (en) * | 2020-03-17 | 2020-06-19 | 北京文香信息技术有限公司 | Method and device for converting infrared track into video stream, electronic whiteboard and storage medium |
CN111858513A (en) * | 2020-07-22 | 2020-10-30 | 深圳市昇利扬科技有限公司 | Data storage format of digital ink handwriting |
CN111881904A (en) * | 2020-07-31 | 2020-11-03 | 城云科技(中国)有限公司 | Blackboard writing recording method and system |
CN115048023A (en) * | 2021-03-09 | 2022-09-13 | 广州视源电子科技股份有限公司 | Electronic note restoring method, device, medium and interactive panel |
CN115048023B (en) * | 2021-03-09 | 2024-06-04 | 广州视源电子科技股份有限公司 | Electronic note reduction method, device, medium and interactive tablet |
CN114610222A (en) * | 2022-03-24 | 2022-06-10 | 深圳市电子商务安全证书管理有限公司 | Method and device for generating vertical screen handwritten signature, terminal equipment and storage medium |
CN114860094A (en) * | 2022-05-23 | 2022-08-05 | Oppo广东移动通信有限公司 | Data storage method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108763320A (en) | A kind of writing note data storage method, device, terminal and storage medium | |
RU2683174C2 (en) | Ink to text representation conversion | |
CN105511792A (en) | In-position hand input method and system for form | |
CN102707875B (en) | Integration method and system for sketch-based interaction and computer data analysis | |
TWI303377B (en) | Method for determining,and system for implementing,ink gestures | |
US20160048318A1 (en) | Detecting selection of digital ink | |
US20180121074A1 (en) | Freehand table manipulation | |
JP6430197B2 (en) | Electronic apparatus and method | |
US20140304586A1 (en) | Electronic device and data processing method | |
US7924284B2 (en) | Rendering highlighting strokes | |
CN103425485A (en) | Interface edition and operation system and method for ordinary users | |
KR20120095852A (en) | Method and apparatus for drawing and erasing calligraphic ink objects on a display surface | |
CN108351896A (en) | Content file image analysis | |
CN104166970A (en) | Handwriting data file generating method and apparatus thereof, handwriting data file recovery display method and apparatus thereof, and electronic device | |
CN103384896A (en) | Digital comic editing device and method therefor | |
WO2013110286A1 (en) | Paragraph property detection and style reconstruction engine | |
CN107977155B (en) | Handwriting recognition method, device, equipment and storage medium | |
CN103389873A (en) | Electronic device, and handwritten document display method | |
CN106502571A (en) | Hand-written inputting method and electronic equipment | |
CN108492349A (en) | Processing method, device, equipment and the storage medium of stroke writing | |
CN104536947A (en) | Layout document processing method and device | |
CN115134317B (en) | Message display method, device, storage medium and electronic device | |
CN107291564A (en) | Information copying and pasting method and device and electronic equipment | |
WO2023024959A1 (en) | Image labeling method and system, and device and storage medium | |
US8494276B2 (en) | Tactile input recognition using best fit match |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 510635 Room 2301-2341, 23 South Tower, 28 Longkou Hengjie, Tianhe District, Guangzhou City, Guangdong Province Applicant after: Bee Assistant Co., Ltd. Address before: 510635 Room 2301-2341, 23 South Tower, 28 Longkou Hengjie, Tianhe District, Guangzhou City, Guangdong Province Applicant before: Guangdong bee assistant network technology Limited by Share Ltd |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181106 |