Summary of the invention
In order to solve the refreshing frequency that touch screen controller in the prior art reports the frequency limited of contact information in touch screenRate causes the precision of electronic equipment drawing image relatively low, draws the problem of effect difference, the embodiment of the invention provides a kind of drawingPen, electronic equipment and drawing practice.
In a first aspect, provide a kind of drawing pen, the drawing pen include: nib, shell, at least three pressure sensors,Processor and transceiver;
The nib is partly embedded in the shell, and at least three pressure sensor is fixed on the interior of shell, andWherein two pressure sensors of arbitrary neighborhood are to the angle between the vertical line of the center line of the nib less than 180 °;
The processor is electrical connected at least three pressure sensor and the transceiver respectively;
The processor, for obtaining the collected pressure of at least three pressure sensors according to preset sample frequencyData;
The processor is also used to control the transceiver according to the pressure data got and send out to electronic equipmentDraw data is sent, so that the electronic equipment is according to the draw data drawing image.
In the first possible implementation of first aspect, gripping mark, the gripping mark are provided on the shellKnowledge is used to indicate the holding form for holding the drawing pen.
In second of possible implementation of first aspect, the preset sample frequency is greater than 60Hz.
With reference to first aspect, second of the possible implementation of the first of first aspect or first aspect can be able to achieveMode, in the third possible implementation of first aspect, the draw data is the pressure data.
With reference to first aspect, second of the possible implementation of the first of first aspect or first aspect can be able to achieveMode, in the 4th kind of possible implementation of first aspect, the draw data is the coordinate of N-1 intermediate point, N >=2;
The processor is also used to obtain the seat of the N-1 intermediate point in the following manner according to the pressure dataMark:
The processor controls the transceiver and successively receives the first coordinate that the electronic equipment is obtained and sent in real timeWith the second coordinate, first coordinate and second coordinate are that the nib is successively passed through in the drawing area of the electronic equipmentThe coordinate for the two o'clock crossed;
The processor is according to first coordinate, second coordinate and is receiving first coordinate and describedPreceding N-1 group pressure data in the N group pressure data successively obtained within the period of second coordinate calculates the nib in instituteState the coordinate of the N-1 intermediate point successively passed through between the first coordinate and second coordinate.
The 4th kind of possible implementation with reference to first aspect, in the 5th kind of possible implementation of first aspect, instituteIt is collected maximum comprising at least three pressure sensor in each group of pressure data before stating in N-1 group pressure dataTwo pressure values and the respective direction of described two pressure values;
The processor is sat specifically for calculating the nib in the following manner in first coordinate and described secondThe coordinate of the N-1 intermediate point successively passed through between mark:
The processor calculates linear distance L between first coordinate and second coordinate and from described firstCoordinate is to the line direction a between second coordinate;
Two pressure values and described i-th for including according to i-th group of pressure data in the preceding N-1 group pressure dataTwo respective directions of pressure value that group pressure data includes, calculate the nib when acquiring i-th group of pressure dataMoving direction b;
Calculate the angle γ between the line direction a and the moving direction b;
It is calculated according to the linear distance L and angle γ and is acquiring i-th group of pressure data to acquisition i+1 group pressureThe mobile distance L of the nib between datai, Li=L*cos γ/N;
According to the distance L of the coordinate of (i-1)-th intermediate point, the moving direction b of the nib and the nib movementiMeterCalculate the coordinate of i-th of intermediate point;
Wherein, 1≤i≤N-1;As i=1, the coordinate of (i-1)-th intermediate point is first coordinate.
The 5th kind of possible implementation with reference to first aspect, in the 6th kind of possible implementation of first aspect, instituteProcessor is stated, two pressure values for including according to i-th group of pressure data is also used to and calculates in acquisition i-th group of pressureDrafting dynamics when data;
The processor is also used to control the transceiver to the electronic equipment and sends the acquisition preceding N-1 group pressureCorresponding drafting dynamics when data.
Second aspect, provides a kind of electronic equipment, and the electronic equipment includes: processor, memory and transceiver;ItsIn, for storing several instructions, several described instructions are configured to be executed by the processor memory;
The processor receives the draw data that drawing pen is sent for controlling the transceiver;
The processor, for according to the draw data drawing image.
In the first possible implementation of second aspect, the draw data is at least three in the drawing penThe collected pressure data of pressure sensor;The processor is specifically used for when according to the draw data drawing image:
The first coordinate and the second coordinate are obtained, first coordinate and second coordinate are that the nib of the drawing pen existsThe coordinate for the two o'clock successively passed through in the drawing area of the electronic equipment;According to first coordinate, second coordinate withAnd within the period that the coordinate acquiring unit gets first coordinate and second coordinate, the drawing pen according toPreceding N-1 group pressure data in the secondary N group pressure data got calculates the nib in first coordinate and described secondThe coordinate of the N-1 intermediate point successively passed through between coordinate, N >=2;Draw the seat of first coordinate, the N-1 intermediate pointBe marked with and the corresponding coordinate points of the second coordinate in, the line image between every group of adjacent two coordinate points.
In conjunction with the first possible implementation of second aspect, in second of possible implementation of second aspect, instituteIt is collected maximum comprising at least three pressure sensor in each group of pressure data before stating in N-1 group pressure dataTwo pressure values and the respective direction of described two pressure values;
The N-1 that the processor successively passes through between first coordinate and second coordinate in the calculating nibWhen the coordinate of a intermediate point, it is specifically used for:
Calculate linear distance L between first coordinate and second coordinate and from first coordinate to describedLine direction a between second coordinate;Two pressures for including according to i-th group of pressure data in the preceding N-1 group pressure dataTwo respective directions of pressure value that power numerical value and i-th group of pressure data include calculate and are acquiring i-th group of pressureWhen force data, the moving direction b of the nib;Calculate the angle γ between the line direction a and the moving direction b;RootIt is calculated according to the linear distance L and angle γ and is acquiring i-th group of pressure data to institute between acquisition i+1 group pressure dataState the mobile distance L of nibi, Li=L*cos γ/N;According to the moving direction b of the coordinate of (i-1)-th intermediate point, the nib withAnd the distance L of the nib movementiCalculate the coordinate of i-th of intermediate point;
Wherein, 1≤i≤N-1;As i=1, the coordinate of (i-1)-th intermediate point is first coordinate.
In conjunction with second of possible implementation of second aspect, in the third possible implementation of second aspect, instituteProcessor is stated, two pressure values for including according to i-th group of pressure data is also used to and calculates the drawing pen in acquisition instituteState drafting dynamics when i-th group of pressure data;
The processor is also used to acquiring each group pressure in the preceding N-1 group pressure data according to the drawing penThe image of the line image between every group of adjacent two coordinate points is respectively set in corresponding drafting dynamics when dataAttribute, described image attribute include at least one of line color and line thickness.
In the 4th kind of possible implementation of second aspect, the draw data is between the first coordinate and the second coordinateN-1 intermediate point coordinate;First coordinate and second coordinate are drawing of the nib in the electronic equipmentThe coordinate for the two o'clock that region is successively passed through;
The processor, for according to draw data, drawing image in the following manner:
The processor draws first coordinate, the coordinate of the N-1 intermediate point and second coordinate respectivelyLine image in corresponding coordinate points, between every group of adjacent two coordinate points.
In conjunction with the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation of second aspect, instituteProcessor is stated, is also used to control the transceiver and receives what the drawing pen was sent, the drawing pen is acquiring the preceding N-1 groupCorresponding drafting dynamics when each group pressure data in pressure data;
The processor is also used to acquiring each group pressure in the preceding N-1 group pressure data according to the drawing penThe image of the line image between every group of adjacent two coordinate points is respectively set in corresponding drafting dynamics when dataAttribute, described image attribute include at least one of line color and line thickness.
The third aspect provides a kind of drawing practice, in drawing pen, which comprises
The collected pressure data of at least three pressure sensors in the drawing pen is obtained according to preset sample frequency;
According to the pressure data got, the transceiver controlled in the drawing pen sends drawing number to electronic equipmentAccording to so that the electronic equipment is according to the draw data drawing image.
In the first possible implementation of the third aspect, the draw data is the pressure data.
May be in implementation at second of the third aspect, the draw data is the coordinate of N-1 intermediate point, N >=2;The pressure data that the basis is got, the transceiver controlled in the drawing pen send drawing number to electronic equipmentAccording to, comprising:
It controls the transceiver and successively receives the first coordinate and the second coordinate that the electronic equipment is obtained and sent in real time,First coordinate and second coordinate are the two o'clock that the nib is successively passed through in the drawing area of the electronic equipmentCoordinate;
According to first coordinate, second coordinate and receiving first coordinate and second coordinatePreceding N-1 group pressure data in the N group pressure data successively obtained within period calculates the nib in first coordinateThe coordinate of the N-1 intermediate point successively passed through between second coordinate, N >=2;
Control the coordinate that the transceiver sends the N-1 intermediate point to the electronic equipment.
In conjunction with second of possible implementation of the third aspect, in the third possible implementation of the third aspect, instituteIt is collected maximum comprising at least three pressure sensor in each group of pressure data before stating in N-1 group pressure dataTwo pressure values and the respective direction of described two pressure values;It is described according to first coordinate, second coordinateAnd in the N group pressure data successively obtained within the period for receiving first coordinate and second coordinate beforeN-1 group pressure data calculates the N-1 that the nib is successively passed through between first coordinate and second coordinateThe coordinate of intermediate point, specifically includes:
Calculate linear distance L between first coordinate and second coordinate and from first coordinate to describedLine direction a between second coordinate;Two pressures for including according to i-th group of pressure data in the preceding N-1 group pressure dataTwo respective directions of pressure value that power numerical value and i-th group of pressure data include calculate and are acquiring i-th group of pressureWhen force data, the moving direction b of the nib;Calculate the angle γ between the line direction a and the moving direction b;RootIt is calculated according to the linear distance L and angle γ and is acquiring i-th group of pressure data to institute between acquisition i+1 group pressure dataState the mobile distance L of nibi, Li=L*cos γ/N;According to the moving direction b of the coordinate of (i-1)-th intermediate point, the nib withAnd the distance L of the nib movementiCalculate the coordinate of i-th of intermediate point;
Wherein, 1≤i≤N-1;As i=1, the coordinate of (i-1)-th intermediate point is first coordinate.
In conjunction with the third possible implementation of the third aspect, in the 4th kind of possible implementation of the third aspect, instituteState method further include:
Two pressure values for including according to i-th group of pressure data are calculated when acquiring i-th group of pressure dataDrafting dynamics;
It controls the transceiver and sends each group number pressure acquired in the preceding N-1 group pressure data to the electronic equipmentAccording to when corresponding drafting dynamics.
Fourth aspect provides a kind of drawing practice, in electronic equipment, which comprises
Receive the draw data that drawing pen is sent;
According to the draw data drawing image.
In the first possible implementation of fourth aspect, the draw data is at least three in the drawing penThe collected pressure data of pressure sensor;
It is described according to the draw data drawing image, specifically include:
The first coordinate and the second coordinate are obtained, first coordinate and second coordinate are that the nib of the drawing pen existsThe coordinate for the two o'clock successively passed through in the drawing area of the electronic equipment;
According to first coordinate, second coordinate and getting first coordinate and second coordinateWithin period, the preceding N-1 group pressure data in N group pressure data that the drawing pen is successively got calculates the nibThe coordinate of the N-1 intermediate point successively passed through between first coordinate and second coordinate, N >=2;
Draw the coordinate and the corresponding coordinate of the second coordinate of first coordinate, the N-1 intermediate pointLine image in point, between every group of adjacent two coordinate points.
In conjunction with the first possible implementation of fourth aspect, in second of possible implementation of fourth aspect, instituteIt is collected maximum comprising at least three pressure sensor in each group of pressure data before stating in N-1 group pressure dataTwo pressure values and the respective direction of described two pressure values;It is described to calculate the nib in first coordinate and instituteThe coordinate for stating the N-1 intermediate point successively passed through between the second coordinate, specifically includes:
Calculate linear distance L between first coordinate and second coordinate and from first coordinate to describedLine direction a between second coordinate;Two pressures for including according to i-th group of pressure data in the preceding N-1 group pressure dataTwo respective directions of pressure value that power numerical value and i-th group of pressure data include calculate and are acquiring i-th group of pressureWhen force data, the moving direction b of the nib;Calculate the angle γ between the line direction a and the moving direction b;RootIt is calculated according to the linear distance L and angle γ and is acquiring i-th group of pressure data to institute between acquisition i+1 group pressure dataState the mobile distance L of nibi, Li=L*cos γ/N;According to the moving direction b of the coordinate of (i-1)-th intermediate point, the nib withAnd the distance L of the nib movementiCalculate the coordinate of i-th of intermediate point;
Wherein, 1≤i≤N-1;As i=1, the coordinate of (i-1)-th intermediate point is first coordinate.
In conjunction with second of possible implementation of fourth aspect, in the third possible implementation of fourth aspect, instituteState method further include:
The drawing pen, which is calculated, according to two pressure values that i-th group of pressure data includes is acquiring described i-th groupDrafting dynamics when pressure data;
It is drawn according to the drawing pen is corresponding when acquiring each group pressure data in the preceding N-1 group pressure dataThe image attributes of the line image between every group of adjacent two coordinate points, described image attribute is respectively set in dynamics processedIncluding at least one of line color and line thickness.
In the 4th kind of possible implementation of fourth aspect, the draw data is between the first coordinate and the second coordinateN-1 intermediate point coordinate;First coordinate and second coordinate are drawing of the nib in the electronic equipmentThe coordinate for the two o'clock that region is successively passed through;
It is described according to the draw data drawing image, comprising:
Draw the coordinate and the corresponding coordinate of the second coordinate of first coordinate, the N-1 intermediate pointLine image in point, between every group of adjacent two coordinate points.
In conjunction with the 4th kind of possible implementation of fourth aspect, in the 5th kind of possible implementation of fourth aspect, instituteState method further include:
Receive what the drawing pen was sent, the drawing pen is acquiring each group pressure in the preceding N-1 group pressure dataCorresponding drafting dynamics when data;
It is drawn according to the drawing pen is corresponding when acquiring each group pressure data in the preceding N-1 group pressure dataThe image attributes of the line image between every group of adjacent two coordinate points, described image attribute is respectively set in dynamics processedIncluding at least one of line color and line thickness.
The beneficial effect of technical solution provided in an embodiment of the present invention is:
At least three pressure sensors are set by the written surrounding in drawing pen, it is collected to obtain pressure sensorPressure data, and the draw data needed for drawing is sent to electronic equipment according to the pressure data got, so as to electronic equipmentAccording to the draw data drawing image, since the frequency that drawing pen obtains pressure data is not limited by the screen refresh rate of electronic equipmentSystem can be much higher than 60Hz, can greatly improve the precision of electronic equipment drawing image and draw effect.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present inventionFormula is described in further detail.
Referring to FIG. 1, implementation environment involved in the drawing practice provided it illustrates section Example of the present invention showsIt is intended to.As shown in Figure 1, the implementation environment includes drawing pen 110 and electronic equipment 120.
Wherein, which can be the equipment such as smart phone, tablet computer, E-book reader.Drawing penIt is attached between 110 and electronic equipment 120 by wired or wireless mode.
Scheme shown in each embodiment of the present invention, is arranged pressure sensor, drawing pen is according to certain in drawing penThe pressure data that is subject to of pressure sensor in sample frequency acquisition drawing course, according in the pressure data pressure value and sideAlways calculate drawing pen every time acquisition pressure data when moving direction and draw dynamics, electronic equipment according to calculated result intoRow Image Rendering, the calculating process can be completed by drawing pen, can also be completed by electronic equipment, or by drawing pen andElectronic equipment is respectively completed a part therein.Wherein, the sample frequency of drawing pen is higher, electronic equipment draw image with drawThe motion track of figure pen is closer, since the sample frequency of drawing pen is not influenced by electronic equipment screen refresh rate, thisScheme of the scheme shown in each embodiment relative to the Drawing Directly in touch screen is invented, drawing effect can greatly be improvedFruit.
Referring to FIG. 2, it illustrates the structure charts of drawing pen provided by one embodiment of the present invention.The drawing pen can beDrawing pen 110 in drafting system shown in FIG. 1, wherein Fig. 2 left-half is the longitudal section cross-sectional view of drawing pen, right sideIt is divided into the longitudal section cross-sectional view of nib with pressure sensor part.As shown in Fig. 2, the drawing pen may include: nib 210, it is outerShell 220, at least three pressure sensors 230, processor 240 and transceiver 250;
Described written 210 half are embedded in the shell 220, and at least three pressure sensor 230 is fixed on described outerInside shell 220, and wherein two pressure sensors of arbitrary neighborhood to nib 210 center line vertical line between angle αLess than 180 °;
The processor 240 is electrical connected at least three pressure sensor 230 and the transceiver 250 respectively;
The processor 240 is collected for obtaining at least three pressure sensor 230 according to preset sample frequencyPressure data;
The processor 240 is also used to control the transceiver 250 to electronics according to the pressure data gotEquipment sends draw data, so that the electronic equipment is according to the draw data drawing image.
In conclusion drawing pen provided in an embodiment of the present invention, passes through the written surrounding setting at least three in drawing penA pressure sensor obtains the collected pressure data of pressure sensor, and according to the pressure data got to electronic equipmentThe draw data needed for drawing is sent, so that electronic equipment is according to the draw data drawing image, since drawing pen obtains pressureThe frequency of data is not limited by the screen refresh rate of electronic equipment, can be much higher than 60Hz, can greatly be improved electronic equipmentThe precision and drafting effect of drawing image.
Based on above-mentioned drawing pen shown in Fig. 2, referring to FIG. 3, it illustrates another embodiment of the present invention provides drawingThe structure chart of pen.The drawing pen can be the drawing pen 110 in drafting system shown in FIG. 1, wherein Fig. 3 left-half is to drawThe longitudal section cross-sectional view of figure pen, right half part are the longitudal section cross-sectional view of nib with pressure sensor part.As shown in figure 3, shouldDrawing pen may include: nib 210, shell 220, at least three pressure sensors 230, processor 240 and transceiver 250;
Wherein, between nib 210, shell 220, at least three pressure sensors 230, processor 240 and transceiver 250Connection relationship and processor 20 performed by operating procedure it is identical as above-mentioned drawing pen shown in Fig. 2, be detailed in one implementationDescription in example, details are not described herein again.
Optionally, gripping mark 221 is provided on the shell 220, the gripping mark 221 is used to indicate described in grippingThe holding form of drawing pen.
In order to guarantee that the direction of pressure that pressure sensor is incuded is it is known that user can be indicated using fixed holdingForm holds drawing pen, for example, increase groove on paintbrush, inform user need it is to be used hold object space formula, can be protected with thisThe holding form and sensor corresponding direction that card user holds a pen every time are all consistent.
Optionally, the preset sample frequency is greater than 60Hz.
Since the frequency that drawing pen obtains pressure data is not limited by the screen refresh rate of electronic equipment, can theoretically incite somebody to actionSample frequency is arranged very high, for example, can set 1000Hz for the sample frequency.
Optionally, the draw data is the coordinate of N-1 intermediate point, N >=2;The processor, is also used to according toPressure data obtains the coordinate of the N-1 intermediate point in the following manner:
The processor 240 controls the transceiver and successively receives the first seat that the electronic equipment is obtained and sent in real timeMark and the second coordinate, first coordinate and second coordinate are that the nib is successive in the drawing area of the electronic equipmentThe coordinate of the two o'clock of process.
The drawing area of electronic equipment can be the specified region in the touch screen of electronic equipment, alternatively, the drawing areaThe drawing area being also possible in drawing board associated with electronic equipment.It is slided in the nib of drawing pen in the drawing areaIn the process, touch screen or drawing board can report contact information to electronic equipment, and electronic equipment is being drawn with this to obtain nibThe coordinate of two points successively slipped in region, electronic equipment one coordinate of every acquisition, i.e., send the coordinate got in real timeTo drawing pen.
The processor 240 according to first coordinate, second coordinate and receive first coordinate andThe preceding N-1 group pressure data in N group pressure data successively obtained within the period of second coordinate, calculates the nibThe coordinate of the N-1 intermediate point successively passed through between first coordinate and second coordinate.
Optionally, it is passed in each group of pressure data in the preceding N-1 group pressure data comprising at least three pressureCollected maximum two pressure values of sensor and the respective direction of described two pressure values.
Wherein, it when three pressure sensors acquire pressure data every time, can only have been collected there are two pressure sensorThe pressure value of effect, and the two effective pressure values are necessarily maximum in three collected pressure values of pressure sensorTwo values, even if the collected pressure value of only one pressure sensor is not 0, the acquisition of other two pressure sensorsWhen the pressure value arrived is 0, it is also assumed that having one in the two maximum numerical value is 0, in default user according to indicatedFixed hold form come in the case where holding drawing pen, it is only necessary to three pressure sensors in drawing pen are numbered respectively,It can know the direction of effective pressure value.Correspondingly, including two in each group of pressure data that processor obtainsThe direction of effective pressure value and the two effective pressure values.
Drawing pen often receives a new coordinate, that is, obtains from a upper coordinate is received to receiving the new coordinateBetween, the collected preceding N-1 group pressure data of three pressure sensors, according to the two coordinates and the preceding N-1 group pressure data,It can be successively to determine the coordinate of N-1 intermediate point between the two coordinates from a upper coordinate.Drawing pen will determineThe coordinate of N-1 intermediate point be sent to electronic equipment, electronic equipment can draw out accordingly nib the two coordinates itBetween sliding trace.
Optionally, the processor 340, specifically for calculate in the following manner the nib in first coordinate andThe coordinate of the N-1 intermediate point successively passed through between second coordinate:
The processor calculates linear distance L between first coordinate and second coordinate and from described firstCoordinate is to the line direction a between second coordinate;
Two pressure values and described i-th for including according to i-th group of pressure data in the preceding N-1 group pressure dataTwo respective directions of pressure value that group pressure data includes, calculate the nib when acquiring i-th group of pressure dataMoving direction b;
Calculate the angle γ between the line direction a and the moving direction b;
It is calculated according to the linear distance L and angle γ and is acquiring i-th group of pressure data to acquisition i+1 group pressureThe mobile distance L of the nib between datai, Li=L*cos γ/N;
According to the distance L of the coordinate of (i-1)-th intermediate point, the moving direction b of the nib and the nib movementiMeterCalculate the coordinate of i-th of intermediate point;
Wherein, 1≤i≤N;As i=1, the coordinate of (i-1)-th intermediate point is first coordinate.
Referring to FIG. 4, it illustrates the coordinates of the intermediate point shown in another embodiment of the present invention to determine schematic diagram;With firstCoordinate is coordinate A, for the second coordinate is coordinate B, wherein coordinate B is the coordinate newly received, and coordinate A is upper one receptionThe coordinate arrived, drawing pen is according to two coordinates and before receiving in the N group pressure data got between two coordinatesN-1 group pressure data determines the coordinate of intermediate point, and method can be specific as follows:
1) the linear distance L between coordinates computed A and coordinate B, and from the line direction a coordinate A to coordinate B;
2) assume projection of the line on line between coordinate A and coordinate B between every group of two neighboring intermediate point away fromFrom equal, and when obtaining the 1st group of pressure data, nib is located at coordinate A, and nib is located at coordinate B when obtaining N group pressure data, seatIt marks between A and coordinate B there are N-1 intermediate point, in coordinate A, coordinate B and N-1 intermediate point, between every group of two neighboring pointProjector distance of the line on line between coordinate A and coordinate B be L/N.
Exist centainly it should be noted that collecting a coordinate from electronic equipment and being received the coordinate to drawing penTime difference can measure the average value of the time difference in advance in order to ensure the accuracy of drawing, estimate being averaged for the time differenceRelationship between value and the sampling period of drawing pen acquisition pressure data, it is true according to the average value and the relationship between the sampling periodFixed pressure data corresponding with the coordinate received.Such as, it is assumed that the average value of time difference is approximately equal to three sampling periods, that is, works asWhen drawing pen receives coordinate A, drawing pen acquires three groups of pressure datas again after electronic equipment gets coordinate A,At this point, coordinate A can be determined as the nib when acquiring the fourth from the last group pressure data in existing pressure data by drawing penThe coordinate of the point passed through can also similarly determine that corresponding group pressure data of coordinate B.
3), can be from coordinate A when determining the coordinate of the 1st intermediate point, include according to the 1st group of pressure data twoTwo respective directions of pressure value that a pressure value and the 1st group of pressure data include calculate and are acquiring the 1st group of number pressureAccording to when nib moving direction b1;Calculate line direction a and moving direction b1Between angle γ1;It calculates and is acquiring the 1st group of pressureThe force data distance L mobile to nib between the 2nd group of pressure data of acquisition1=L*cos γ1/N;According to coordinate A, the movement of nibDirection b1And L1Calculate the coordinate of the 1st intermediate point.
It 4), can be from (i-1)-th intermediate point, according to i-th group of pressure data when determining the coordinate of i-th of intermediate pointTwo respective directions of pressure value that two pressure values and i-th group of pressure data for including include are calculated in acquisition i-thThe moving direction b of nib when group pressure datai;Calculate line direction a and moving direction biBetween angle γi;Calculating is acquiringI-th group of pressure data distance L mobile to nib between acquisition i+1 group pressure datai=L*cos γi/N;According to coordinate A,The moving direction b of nibiAnd LiCalculate the coordinate of i-th of intermediate point.Wherein, 2≤i≤N-1.
It should be noted that scheme shown in the embodiment of the present invention is to assume the line between every group of two neighboring intermediate pointIt is illustrated for the projector distance on line between coordinate A and coordinate B is equal, in practical applications, can also there is itIt calculates the seat calibration method of intermediate point according to pressure data, such as, it can be assumed that the distance between every two intermediate point is equal.
Optionally, the processor 340 is also used to two pressure value meters for including according to i-th group of pressure dataCalculate the drafting dynamics when acquiring i-th group of pressure data;
The processor 340 is also used to control the transceiver to the electronic equipment and sends the acquisition preceding N-1 group pressureCorresponding drafting dynamics when force data.
In embodiments of the present invention, drawing pen can also calculate each group of pressure data of acquisition according to the numerical value of pressure dataWhen drafting dynamics, specific for example, two pressure values in i-th group of pressure data are respectively F1 and F2, then drafting dynamics FIt can obtain according to the following equation:
When electronic equipment receives the drafting dynamics, it can determine (i-1)-th intermediate point to i-th according to the drafting dynamicsThickness or the depth of color of lines between a intermediate point etc..
Optionally, the draw data is the pressure data.
In the scheme shown in the embodiment of the present invention, the step of determining the coordinate of N-1 intermediate point and draw dynamicsIt can be completed by electronic equipment, the pressure data that drawing pen only will acquire is sent to electronic equipment in real time.
It should be noted that the above embodiment of the present invention is only illustrated by taking three pressure sensors as an example, it is preferred that alsoThe quantity of pressure sensor can be increased to improve accuracy and reliability, for example, 4 pressure sensors can be set, and 4Pressure sensor is in crossing distribution around nib;Alternatively, in practical applications, in order to avoid because partial pressure sensesDevice failure and the case where cause drawing pen that can not work, 6,8 or 12 pressure sensings also can be set in drawing penDevice etc.;Alternatively, multiple sensor modules can also be arranged in drawing pen, each sensor module is passed comprising at least three pressureOther sensor module acquisition pressure can be used when the pressure sensor of a sensor module breaks down in sensorData.The embodiment of the present invention for pressure sensor quantity without limitation, as long as collected pressure data can satisfy penThe moving direction of head and the calculating for drawing dynamics.
In conclusion drawing pen provided in an embodiment of the present invention, passes through the written surrounding setting at least three in drawing penA pressure sensor obtains the collected pressure data of pressure sensor, and according to the pressure data got to electronic equipmentThe draw data needed for drawing is sent, so that electronic equipment is according to the draw data drawing image, since drawing pen obtains pressureThe frequency of data is not limited by the screen refresh rate of electronic equipment, can be much higher than 60Hz, can greatly be improved electronic equipmentThe precision and drafting effect of drawing image.
In addition, drawing pen provided in an embodiment of the present invention, calculates every in acquisition also according to the pressure value in pressure dataDrafting dynamics when one group of pressure data, and drafting dynamics when acquiring each group of pressure data is sent to electronic equipment, byElectronic equipment determines the thickness and color of lines according to the drafting dynamics, further improves the drafting effect of image.
Referring to FIG. 5, it illustrates the block diagrams of electronic equipment provided by one embodiment of the present invention.The drawing pen can beElectronic equipment 120 in drafting system shown in FIG. 1, the electronic equipment can be smart phone, tablet computer, e-book readingThe equipment such as device or PC.The electronic equipment may include: bus 501, and be connected to the processor of the bus502, memory 503, transceiver 504.Wherein, the memory 503 is for storing several instructions, several described instruction quiltsIt is configured to be executed by the processor 502;
The processor 502 receives the draw data that drawing pen is sent for controlling the transceiver 504;
The processor 502, for according to the draw data drawing image.
Optionally, the draw data is the collected number pressure of at least three pressure sensors in the drawing penAccording to;The processor 502 is specifically used for when according to the draw data drawing image:
The first coordinate and the second coordinate are obtained, first coordinate and second coordinate are that the nib of the drawing pen existsThe coordinate for the two o'clock successively passed through in the drawing area of the electronic equipment;According to first coordinate, second coordinate withAnd within the period that the coordinate acquiring unit gets first coordinate and second coordinate, the drawing pen according toPreceding N-1 group pressure data in the secondary N group pressure data got calculates the nib in first coordinate and described secondThe coordinate of the N-1 intermediate point successively passed through between coordinate, N >=2;Draw the seat of first coordinate, the N-1 intermediate pointBe marked with and the corresponding coordinate points of the second coordinate in, the line image between every group of adjacent two coordinate points.
Optionally, it is passed in each group of pressure data in the preceding N-1 group pressure data comprising at least three pressureCollected maximum two pressure values of sensor and the respective direction of described two pressure values;
The processor 502 is calculating what the nib was successively passed through between first coordinate and second coordinateWhen the coordinate of N-1 intermediate point, it is specifically used for:
Calculate linear distance L between first coordinate and second coordinate and from first coordinate to describedLine direction a between second coordinate;Two pressures for including according to i-th group of pressure data in the preceding N-1 group pressure dataTwo respective directions of pressure value that power numerical value and i-th group of pressure data include calculate and are acquiring i-th group of pressureWhen force data, the moving direction b of the nib;Calculate the angle γ between the line direction a and the moving direction b;RootIt is calculated according to the linear distance L and angle γ and is acquiring i-th group of pressure data to institute between acquisition i+1 group pressure dataState the mobile distance L of nibi, Li=L*cos γ/N;According to the moving direction b of the coordinate of (i-1)-th intermediate point, the nib withAnd the distance L of the nib movementiCalculate the coordinate of i-th of intermediate point;
Wherein, 1≤i≤N-1;As i=1, the coordinate of (i-1)-th intermediate point is first coordinate.
Wherein, electronic equipment determines the seat calibration method of the intermediate point between two coordinates according to pressure data, with Fig. 3 instituteDrawing pen determines that the seat calibration method of intermediate point is similar in the embodiment shown, specifically please refers to the description of part corresponding to Fig. 4, thisPlace repeats no more.
It should be noted that pressure data transmission electron is set by drawing pen in scheme shown in the embodiment of the present inventionIt is standby, it is received to electronic equipment there are the time difference pressure data wherein collecting pressure data from drawing pen, i.e. electronics is setFor when getting the first coordinate or the second coordinate, does not receive pressure data corresponding with the coordinate got also and do not receive alsoIt arrives, therefore, equally by taking the average value of time difference is approximately equal to three sampling periods as an example, not with the description in embodiment illustrated in fig. 4With when determining pressure data corresponding with the collected coordinate of electronic equipment, electronic equipment can will acquire seatThe third group pressure data received after mark A is determined as pressure data corresponding with coordinate A, can also similarly will acquire seatThe third group pressure data received after mark B is determined as pressure data corresponding with coordinate B.
Optionally, the processor 502 is also used to two pressure value meters for including according to i-th group of pressure dataCalculate drafting dynamics of the drawing pen when acquiring i-th group of pressure data;
The processor 502 is also used to acquiring each group pressure in the preceding N-1 group pressure data according to the drawing penThe figure of the line image between every group of adjacent two coordinate points is respectively set in corresponding drafting dynamics when force dataAs attribute, described image attribute includes at least one of line color and line thickness.
Wherein, electronic equipment calculates drawing pen according to the pressure value for including in pressure data and is acquiring each group of number pressureAccording to when method and the drawing pen in Fig. 3 corresponding embodiment of drafting dynamics to calculate the method for the drafting dynamics similar, herein no longerIt repeats.
Optionally in the coordinate of N-1 intermediate point of the draw data between the first coordinate and the second coordinate;It is describedFirst coordinate and second coordinate are the coordinate for the two o'clock that the nib is successively passed through in the drawing area of the electronic equipment;The processor 502 sends the first coordinate and the second seat to the drawing pen for obtaining and controlling the transceiver 504 in real timeMark;
The processor 502, for according to draw data, drawing image in the following manner:
It is each that the processor 502 draws first coordinate, the coordinate of the N-1 intermediate point and second coordinateLine image in self-corresponding coordinate points, between every group of adjacent two coordinate points.
Optionally, the processor 502 is also used to control the transceiver 504 and receives what the drawing pen was sent, describedDrawing pen corresponding drafting dynamics when acquiring each group pressure data in the preceding N-1 group pressure data;
The processor 502 is also used to acquiring each group pressure in the preceding N-1 group pressure data according to the drawing penThe figure of the line image between every group of adjacent two coordinate points is respectively set in corresponding drafting dynamics when force dataAs attribute, described image attribute includes at least one of line color and line thickness.
Wherein, drawing pen determines the seat calibration method of the intermediate point between two coordinates according to pressure data, and drawsThe specific steps that pen calculates the method for the drafting dynamics when acquiring each group of pressure data please refer in embodiment shown in Fig. 3Description, details are not described herein again.
In conclusion electronic equipment provided in an embodiment of the present invention, at least by the written surrounding setting in drawing penThree pressure sensors, electronic equipment receive drawing pen and are sent according to the collected pressure data of at least three pressure sensorDraw data carry out Image Rendering, due to drawing pen obtain pressure data frequency not by electronic equipment screen refresh rate limitSystem can be much higher than 60Hz, can greatly improve the precision of electronic equipment drawing image and draw effect.
In addition, electronic equipment provided in an embodiment of the present invention, is acquiring also according to the pressure value calculating in pressure dataDrafting dynamics when each group of pressure data, or the calculated drafting dynamics of drawing pen is obtained, it is determined according to the drafting dynamicsThe thickness and color of lines further improve the drafting effect of image.
Referring to FIG. 6, it illustrates the block diagrams of plotting unit provided by one embodiment of the present invention.The plotting unit can be withFor in the electronic equipment 120 of drafting system as shown in Figure 1.The plotting unit may include:
Draw data receiving module 601, for receiving the draw data of drawing pen transmission;
Image Rendering module 602, for according to the draw data drawing image.
Optionally, the draw data is the collected number pressure of at least three pressure sensors in the drawing penAccording to;Described image drafting module is specifically used for when according to the draw data drawing image:
The first coordinate and the second coordinate are obtained, first coordinate and second coordinate are that the nib of the drawing pen existsThe coordinate for the two o'clock successively passed through in the drawing area of the electronic equipment;
First coordinate is got according to first coordinate, second coordinate and in the coordinate acquiring unitWithin the period of second coordinate, the preceding N-1 group number pressure in N group pressure data that the drawing pen is successively gotAccording to, the coordinate for the N-1 intermediate point that the calculating nib is successively passed through between first coordinate and second coordinate, N≥2;
Draw the coordinate and the corresponding coordinate of the second coordinate of first coordinate, the N-1 intermediate pointLine image in point, between every group of adjacent two coordinate points.
Optionally, it is passed in each group of pressure data in the preceding N-1 group pressure data comprising at least three pressureCollected maximum two pressure values of sensor and the respective direction of described two pressure values;
Described image drafting module successively passes through between first coordinate and second coordinate in the calculating nibWhen the coordinate for the N-1 intermediate point crossed, it is specifically used for:
Calculate linear distance L between first coordinate and second coordinate and from first coordinate to describedLine direction a between second coordinate;Two pressures for including according to i-th group of pressure data in the preceding N-1 group pressure dataTwo respective directions of pressure value that power numerical value and i-th group of pressure data include calculate and are acquiring i-th group of pressureWhen force data, the moving direction b of the nib;Calculate the angle γ between the line direction a and the moving direction b;RootIt is calculated according to the linear distance L and angle γ and is acquiring i-th group of pressure data to institute between acquisition i+1 group pressure dataState the mobile distance L of nibi, Li=L*cos γ/N;According to the moving direction b of the coordinate of (i-1)-th intermediate point, the nib withAnd the distance L of the nib movementiCalculate the coordinate of i-th of intermediate point;
Wherein, 1≤i≤N-1;As i=1, the coordinate of (i-1)-th intermediate point is first coordinate.
Wherein, electronic equipment determines the seat calibration method of the intermediate point between two coordinates according to pressure data, with Fig. 3 instituteDrawing pen determines that the seat calibration method of intermediate point is similar in the embodiment shown, specifically please refers to the description of part corresponding to Fig. 4, thisPlace repeats no more.
Optionally, described image drafting module 602 is also used to two pressure for including according to i-th group of pressure dataNumerical value calculates drafting dynamics of the drawing pen when acquiring i-th group of pressure data;
Described image drafting module 602 is also used to according to the drawing pen in acquiring the preceding N-1 group pressure dataThe line graph between every group of adjacent two coordinate points is respectively set in corresponding drafting dynamics when each group pressure dataThe image attributes of picture, described image attribute include at least one of line color and line thickness.
Wherein, electronic equipment calculates drawing pen according to the pressure value for including in pressure data and is acquiring each group of number pressureAccording to when method and the drawing pen in Fig. 3 corresponding embodiment of drafting dynamics to calculate the method for the drafting dynamics similar, herein no longerIt repeats.
Optionally, the coordinate of N-1 intermediate point of the draw data between the first coordinate and the second coordinate;DescribedOne coordinate and second coordinate are the coordinate for the two o'clock that the nib is successively passed through in the drawing area of the electronic equipment;
Described image drafting module 602, for according to draw data, drawing image in the following manner:
Described image drafting module 602, for drawing first coordinate, the coordinate of the N-1 intermediate point and instituteIt states in the corresponding coordinate points of the second coordinate, the line image between every group of adjacent two coordinate points.
Optionally, described device further include: draw dynamics receiving module 603 and attribute setup module 604:
Drafting dynamics receiving module 603, for receiving the drawing pen transmission, the drawing pen is acquiring the preceding N-Corresponding drafting dynamics when each group pressure data in 1 group of pressure data;
The attribute setup module 604, for each in the acquisition preceding N-1 group pressure data according to the drawing penCorresponding drafting dynamics, is respectively set the line image between every group of adjacent two coordinate points when group pressure dataImage attributes, described image attribute includes at least one of line color and line thickness.
Wherein, drawing pen determines the seat calibration method of the intermediate point between two coordinates according to pressure data, and drawsThe specific steps that pen calculates the method for the drafting dynamics when acquiring each group of pressure data please refer in embodiment shown in Fig. 3Description, details are not described herein again.
In conclusion plotting unit provided in an embodiment of the present invention, at least by the written surrounding setting in drawing penThree pressure sensors, electronic equipment receive drawing pen and are sent according to the collected pressure data of at least three pressure sensorDraw data carry out Image Rendering, due to drawing pen obtain pressure data frequency not by electronic equipment screen refresh rate limitSystem can be much higher than 60Hz, can greatly improve the precision of electronic equipment drawing image and draw effect.
In addition, plotting unit provided in an embodiment of the present invention, is acquiring also according to the pressure value calculating in pressure dataDrafting dynamics when each group of pressure data, or the calculated drafting dynamics of drawing pen is obtained, it is determined according to the drafting dynamicsThe thickness and color of lines further improve the drafting effect of image.
Referring to FIG. 7, it illustrates the method flow diagrams of drawing practice provided by one embodiment of the present invention.The drawing sideMethod can be used in the drawing pen 110 of drafting system as shown in Figure 1.The drawing practice may include:
Step 701, the collected pressure of at least three pressure sensors in the drawing pen is obtained according to preset sample frequencyForce data.
Step 702, according to the pressure data got, the transceiver controlled in the drawing pen is drawn to electronic equipment transmissionDiagram data, so that the electronic equipment is according to the draw data drawing image.
In conclusion drawing practice provided in an embodiment of the present invention, at least by the written surrounding setting in drawing penThree pressure sensors obtain the collected pressure data of pressure sensor, and are set according to the pressure data got to electronicsPreparation send the draw data needed for drawing, so that electronic equipment is according to the draw data drawing image, presses since drawing pen obtainsThe frequency of force data is not limited by the screen refresh rate of electronic equipment, can be much higher than 60Hz, can greatly be improved electronics and setThe precision and drafting effect of standby drawing image.
Referring to FIG. 8, it illustrates the method flow diagrams of drawing practice provided by one embodiment of the present invention.The drawing sideMethod can be used in the electronic equipment 120 of drafting system as shown in Figure 1.The drawing practice may include:
Step 801, the draw data that drawing pen is sent is received, which is the drawing pen according to preset sample frequencyThe collected pressure data of at least three pressure sensors in the drawing pen is obtained, and sent according to the pressure data.
Step 802, according to the draw data drawing image.
In conclusion drawing practice provided in an embodiment of the present invention, at least by the written surrounding setting in drawing penThree pressure sensors, electronic equipment receive drawing pen and are sent according to the collected pressure data of at least three pressure sensorDraw data carry out Image Rendering, due to drawing pen obtain pressure data frequency not by electronic equipment screen refresh rate limitSystem can be much higher than 60Hz, can greatly improve the precision of electronic equipment drawing image and draw effect.
Referring to FIG. 9, it illustrates another embodiment of the present invention provides drawing practice method flow diagram.The drawing sideMethod can be used in drafting system as shown in Figure 1.With the step of calculating the coordinate of intermediate point and drawing dynamics by drawing penFor execution, which may include:
Step 901, drawing pen obtains the acquisition of at least three pressure sensors in the drawing pen according to preset sample frequencyThe pressure data arrived.
Step 902, drawing pen control transceiver successively receive the first coordinate that the electronic equipment is obtained and sent in real time andSecond coordinate.
Wherein, first coordinate and second coordinate are two that the nib is successively passed through in the drawing area of the electronic equipmentThe coordinate of point.
Step 903, drawing pen according to first coordinate, second coordinate and receive first coordinate and this secondThe preceding N-1 group pressure data in N group pressure data successively obtained within the period of coordinate calculates the nib in first seatThe coordinate of the N-1 intermediate point successively passed through between mark and second coordinate, N >=2.
Specifically, including at least three pressure sensor in each group of pressure data in the preceding N-1 group pressure dataCollected maximum two pressure values and two respective directions of pressure value;Drawing pen calculate first coordinate andLinear distance L between second coordinate and from first coordinate to the line direction a second coordinate;According to before thisTwo pressure values and i-th group of pressure data that i-th group of pressure data in N-1 group pressure data includes include twoThe respective direction of pressure value calculates the moving direction b of the nib when acquiring i-th group of pressure data;Calculate the line sideAngle γ between a and moving direction b;It is calculated according to linear distance L and angle γ and is acquiring i-th group of pressure dataThe distance L mobile to the nib between acquisition i+1 group pressure datai, Li=L*cos γ/N;According to (i-1)-th intermediate pointThe mobile distance L of coordinate, the moving direction b of the nib and the nibiCalculate the coordinate of i-th of intermediate point;
Wherein, 1≤i≤N-1;As i=1, the coordinate of (i-1)-th intermediate point is first coordinate.
Step 904, drawing pen controls the coordinate that the transceiver sends the N-1 intermediate point to the electronic equipment.
Step 905, electronic equipment draws first coordinate, the coordinate of the N-1 intermediate point and second coordinate respectivelyLine image in corresponding coordinate points, between every group of adjacent two coordinate points.
Step 906, it is each into the electronic equipment transmission acquisition preceding N-1 group pressure data to control the transceiver for drawing penCorresponding drafting dynamics when group pressure data.
Specifically, drawing pen can be calculated according to two pressure values that i-th group of pressure data includes acquire this i-thDrafting dynamics when group pressure data.
Step 907, electronic equipment is according to the drawing pen when acquiring each group pressure data in the preceding N-1 group pressure dataThe image attributes of the line image between every group of adjacent two coordinate points is respectively set in corresponding drafting dynamics, figureAs attribute includes at least one of line color and line thickness.
Wherein, drawing pen determines the seat calibration method of the intermediate point between two coordinates according to pressure data, and drawsThe specific steps that pen calculates the method for the drafting dynamics when acquiring each group of pressure data please refer in embodiment shown in Fig. 3Description, details are not described herein again.
In conclusion drawing practice provided in an embodiment of the present invention, at least by the written surrounding setting in drawing penThree pressure sensors obtain the collected pressure data of pressure sensor, and according to the pressure data and electronics gotTwo coordinate points that equipment is sent, calculate each intermediate point between two coordinate points, by electronic equipment according to the two seatsThe coordinate drawing image of punctuate and each intermediate point, since drawing pen obtains the frequency of pressure data not by the screen of electronic equipmentRefresh rate limitation can be much higher than 60Hz, can greatly improve the precision of electronic equipment drawing image and draw effect.
In addition, drawing practice provided in an embodiment of the present invention, drawing pen is calculated also according to the pressure value in pressure dataDrafting dynamics when acquiring each group of pressure data, and drafting dynamics when acquiring each group of pressure data is sent into electronEquipment is determined the thickness and color of lines by electronic equipment according to the drafting dynamics, further improves the drafting effect of image.
Referring to FIG. 10, the method flow diagram of the drawing practice provided it illustrates further embodiment of this invention.The drawingMethod can be used in drafting system as shown in Figure 1.With the step of calculating the coordinate of intermediate point and drawing dynamics by electronicsFor equipment executes, which may include:
Step 1001, drawing pen obtains the acquisition of at least three pressure sensors in the drawing pen according to preset sample frequencyThe pressure data arrived.
Step 1002, drawing pen controls transceiver and sends the pressure data to the electronic equipment.
Step 1003, electronic equipment obtains the first coordinate and the second coordinate.
Wherein, first coordinate and second coordinate are that the nib of the drawing pen is first in the drawing area of the electronic equipmentAfterwards by two o'clock coordinate.
Step 1004, electronic equipment according to first coordinate, second coordinate and is getting first coordinate and is being somebody's turn to doWithin the period of second coordinate, the preceding N-1 group pressure data in N group pressure data which successively gets is calculatedThe coordinate for the N-1 intermediate point that the nib is successively passed through between first coordinate and second coordinate, N >=2.
Specifically, including at least three pressure sensor in each group of pressure data in the preceding N-1 group pressure dataCollected maximum two pressure values and two respective directions of pressure value.Electronic equipment calculates first coordinateLinear distance L between second coordinate and from first coordinate to the line direction a second coordinate;According to thisTwo pressure values and i-th group of pressure data that i-th group of pressure data in preceding N-1 group pressure data includes include twoA respective direction of pressure value calculates the moving direction b of the nib when acquiring i-th group of pressure data;Calculate the lineAngle γ between direction a and moving direction b;It is calculated according to linear distance L and angle γ and is acquiring i-th group of number pressureAccording to the distance L mobile to the nib between acquisition i+1 group pressure datai, Li=L*cos γ/N;According to (i-1)-th intermediate pointCoordinate, the nib moving direction b and the mobile distance L of the nibiCalculate the coordinate of i-th of intermediate point;
Wherein, 1≤i≤N-1;As i=1, the coordinate of (i-1)-th intermediate point is first coordinate.
Wherein, electronic equipment determines the seat calibration method of the intermediate point between two coordinates according to pressure data, with Fig. 3 instituteDrawing pen determines that the seat calibration method of intermediate point is similar in the embodiment shown, specifically please refers to the description of part corresponding to Fig. 4, thisPlace repeats no more.
Step 1005, electronic equipment draws first coordinate, the coordinate of the N-1 intermediate point and second coordinate respectivelyLine image in corresponding coordinate points, between every group of adjacent two coordinate points.
Step 1006, electronic equipment calculates drawing pen and is acquiring the preceding N-1 group pressure according to the preceding N-1 group pressure dataCorresponding drafting dynamics when each group pressure data in data.
Specifically, two pressure values that electronic equipment can include according to i-th group of pressure data calculate the drawing penDrafting dynamics when acquiring i-th group of pressure data.
Wherein, electronic equipment calculates drawing pen according to the pressure value for including in pressure data and is acquiring each group of number pressureAccording to when method and the drawing pen in Fig. 3 corresponding embodiment of drafting dynamics to calculate the method for the drafting dynamics similar, herein no longerIt repeats.
Step 1007, electronic equipment is acquiring each group pressure data in the preceding N-1 group pressure data according to the drawing penWhen corresponding drafting dynamics, the image attributes of the line image between every group of adjacent two coordinate points is respectively set,Image attributes includes at least one of line color and line thickness.
In conclusion drawing practice provided in an embodiment of the present invention, at least by the written surrounding setting in drawing penThree pressure sensors, electronic equipment receive drawing pen and are sent according to the collected pressure data of at least three pressure sensorDraw data carry out Image Rendering, due to drawing pen obtain pressure data frequency not by electronic equipment screen refresh rate limitSystem can be much higher than 60Hz, can greatly improve the precision of electronic equipment drawing image and draw effect.
In addition, drawing practice provided in an embodiment of the present invention, is acquiring also according to the pressure value calculating in pressure dataDrafting dynamics when each group of pressure data, or the calculated drafting dynamics of drawing pen is obtained, it is determined according to the drafting dynamicsThe thickness and color of lines further improve the drafting effect of image.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardwareIt completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readableIn storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention andWithin principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.