CN109445887A - A kind of method for drafting for simulating writing brush style of writing - Google Patents

A kind of method for drafting for simulating writing brush style of writing Download PDF

Info

Publication number
CN109445887A
CN109445887A CN201811095953.5A CN201811095953A CN109445887A CN 109445887 A CN109445887 A CN 109445887A CN 201811095953 A CN201811095953 A CN 201811095953A CN 109445887 A CN109445887 A CN 109445887A
Authority
CN
China
Prior art keywords
writing
style
drawn
drafting
coordinate
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
Application number
CN201811095953.5A
Other languages
Chinese (zh)
Inventor
汪俊锋
林传文
薛东阳
刘罡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Wisdom Gold Tong Technology Co Ltd
Original Assignee
Anhui Wisdom Gold Tong Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui Wisdom Gold Tong Technology Co Ltd filed Critical Anhui Wisdom Gold Tong Technology Co Ltd
Priority to CN201811095953.5A priority Critical patent/CN109445887A/en
Publication of CN109445887A publication Critical patent/CN109445887A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a kind of method for drafting for simulating writing brush style of writing, belong to computer graphics disposal technology field, comprising: real-time coordinate acquisition point sample, and the coordinate points sample of acquisition is stored in coordinate set according to sample time order;The distance between coordinate points sample threshold value and sampling time difference threshold value are set, to screen to the coordinate points sample in coordinate set;It is poor according to the distance between adjacent coordinates point sample value and sampling time in coordinate set, and draw mode in conjunction with Bezier and realize that the style of writing of the curve is drawn.The present invention realizes the optimization to fluency is drawn, ensure that can stablize drafting under low latency by screening to the coordinate points sample of acquisition.

Description

A kind of method for drafting for simulating writing brush style of writing
Technical field
The present invention relates to computer graphics disposal technology field, in particular to a kind of method for drafting for simulating writing brush style of writing.
Background technique
With the development of computer graphical, image software and hardware technology, the painting and calligraphy under area of computer aided, which are drawn, becomes research Hot spot.Currently, commonly drawing mode includes two kinds: first is that, the included drafting interface function of exploitation language is drawn. It has the disadvantage that drafting low efficiency, draws time long situations such as will appear delay.Included function interface is not right simultaneously Curve is handled, and causes the sawtooth of curve, shadow problem serious, and writing brush style of writing effect is poor.Second is that being provided in conjunction with development language Function interface drawn.It mainly utilizes C++ Bezier to realize and draws, and calculates draw needs first Data are plotted to curve in conjunction with Bezier, then carry out subsequent modification to curve.It has problems in that: due to wanting By a large amount of calculating and plotting, it may appear that delay and Caton phenomenon, interactive experience are poor;And corresponding technical support is also required to The expense of payment great number is just supported.
Summary of the invention
The purpose of the present invention is to provide a kind of method for drafting for simulating writing brush style of writing, can be under low latency surely with guarantee It is fixed to draw.
In order to achieve the above object, the present invention is using a kind of method for drafting for simulating writing brush style of writing, comprising: one, writing brush drafting Curve beginning and end be the vigour of style in writing, midium line segment is style of writing, comprising:
Real-time coordinate acquisition point sample, and the coordinate points sample of acquisition is stored in coordinate set according to sample time order;
The distance between coordinate points sample threshold value and sampling time difference threshold value are set, to the coordinate point sample in coordinate set This is screened;
It is poor according to the distance between adjacent coordinates point sample value and sampling time in coordinate set, and combine Bezier Drafting mode realizes that the style of writing of the curve is drawn.
Further, further includes:
The slope between collected two coordinate points samples at first is calculated in the coordinate set, and according to slope to song Line beginning is lengthened, and realizes that the vigour of style in writing at the curve beginning is drawn;
When the last one coordinate points sample drawing is completed in the coordinate set, according to the last one coordinate points sample Draw brush width realizes that the vigour of style in writing at the curve ending is drawn to lengthening at curve ending.
Further, the slope between collected two coordinate points samples at first in the coordinates computed set, and press Curve beginning is lengthened according to slope, realizes that the vigour of style in writing at the curve beginning is drawn, comprising:
Calculate in the coordinate set slope k between collected two coordinate points samples at first;
According to slope k, increase n vigour of style in writing coordinate points near first coordinate points sample, and according to the drafting style of writing The smallest paintbrush width carries out lengthening drafting to curve beginning in the process;
Color is set to the curved portion drawn is lengthened, the color which draws curved portion collects at first than described Two coordinate points samples between drafting it is of light color.
Further, described poor according to the distance between adjacent coordinates point sample value and sampling time in coordinate set, and Mode, which is drawn, in conjunction with Bezier realizes that the style of writing of the curve is drawn, comprising:
It is poor according to the distance between adjacent coordinates point value and sampling time in the coordinate set, calculate the picture currently drawn Width;
Color is distributed for the stroke width currently drawn;
Based on the paintbrush width currently drawn and color, mode is drawn to the coordinate set using Bezier In coordinate points sample handled, realize the curve style of writing draw.
Further, described poor according to the distance between adjacent coordinates point value and sampling time in the coordinate set, meter Calculate the paintbrush width currently drawn, comprising:
Calculate the distance between adjacent coordinates point in the coordinate set;
It is poor according to the distance between described adjacent coordinates point and sampling time, calculate the paintbrush speed currently drawn;
According to current drafting speed and the velocity standard value being previously set, the paintbrush paintbrush width currently drawn is calculated:
Wherein, currentPwidth indicates that current paintbrush width, norSpeed indicate the standard value of speed, CurrentSpeed represents current paintbrush speed.
Further, further include using the paintbrush speed currently drawn to the velocity standard value being previously set into Row updates, specifically:
Judge whether the paintbrush speed currently drawn is greater than the velocity standard value being previously set;
If so, the velocity standard value being previously set described in increasing;
If it is not, the velocity standard value being previously set described in then reducing.
Further, further includes:
The paintbrush width that the current paintbrush width is calculated with the last time is made the difference, the two difference is obtained;
The absolute value diffMaxWidth of the difference is compared with acceptable maximum changing value max_dif is set Compared with;
If difference is more than acceptable changing value, then in the upper paintbrush width once calculated between current paintbrush width (max_dif/diffMaxWidth) secondary drafting is carried out again.
It is further, poor in the distance value according in coordinate set between adjacent coordinates point sample and sampling time, And after drawing the style of writing drafting that mode realizes the curve in conjunction with Bezier, further includes:
The curve that one, the writing brush is drawn is replicated, facsimile log is obtained;
The paintbrush width of the facsimile log is increased into m pixel, the transparency reduction of the brush color of facsimile log with As background;
It carries out simulation writing brush again in the background and carries out Drawing of Curve.
Further, further includes:
When coordinate points sample in the coordinate set is less than four, carries out graphical pointv or draw line segment processing.
Further, when described the last one coordinate points sample drawing in coordinate set is completed, according to the last one seat The draw brush width of punctuate sample realizes that the vigour of style in writing at the curve ending is drawn to lengthening at curve ending, comprising:
End is drawn for finger or left mouse button lifts setting mark drawFinsh;
When detecting drawFinsh mark, the paintbrush width at the end of draws set distance to curve knot again It is lengthened at tail.
Compared with prior art, there are following technical effects by the present invention: the present invention realizes the optimization to fluency is drawn, Can carry out stablizing drafting in the case where guaranteeing low latency, the design of low latency be based on the screening to coordinate pair, eliminate away from From the coordinate pair of pixel and time lower than 25ms less than 3~4, reduces the calculating of redundancy, improve efficiency, reduce and prolong Late;Delay is individually drawn based on multithreading, is not interfered with each other, be ensure that the fluency of drafting.It realizes simultaneously to style of writing The optimization of the vigour of style in writing ensure that the effect that simulation writing brush is drawn.
Detailed description of the invention
With reference to the accompanying drawing, specific embodiments of the present invention will be described in detail:
Fig. 1 is a kind of flow diagram of method for drafting for simulating writing brush style of writing;
Fig. 2 is the result schematic diagram simulating writing brush style of writing and drawing.
Specific embodiment
In order to further explain feature of the invention, reference should be made to the following detailed description and accompanying drawings of the present invention.Institute Attached drawing is only for reference and purposes of discussion, is not used to limit protection scope of the present invention.
As shown in Figure 1, present embodiment discloses it is a kind of simulate writing brush style of writing method for drafting, one, the writing brush drafting Curve beginning and end is the vigour of style in writing, and midium line segment is style of writing, includes the following steps S1 to S3:
S1, real-time coordinate acquisition point sample, and the coordinate points sample of acquisition is stored in coordinate set according to sample time order It closes;
The distance between S2, setting coordinate points sample threshold value and sampling time difference threshold value, to the coordinate in coordinate set Point sample is screened;
S3, according in coordinate set the distance between adjacent coordinates point sample value and the sampling time it is poor, and combine Bezier Drawing of Curve mode realizes that the style of writing of the curve is drawn.
It should be noted that it is exactly coordinate acquisition value pair that the simulation writing brush of software version, which draws the first step, coordinate value is to being bent The basis that line is drawn, it is determined that final which type of path with one of curve is shown.In above-mentioned steps S1, to seat The acquisition mode of punctuate sample is as follows:
(1) moving event for monitoring mouse to obtain the motion track of mouse in real time:
This mode by calling the corresponding available corresponding coordinate value pair of interface, using the track of mouse down as The path of drafting.It is pressed in left mouse button and moves beginning until mouse-up completes primary draw.A seat is collected every time Scale value starts to draw to i.e. deposit coordinate set merging, by the coordinate value of acquisition to being continuously added to coordinate set in drawing process, Changing coordinates set is just emptied until user stops current primary draw.One is drawn, the track that user draws can be real When be plotted on painting canvas, currently empty coordinate set, reduce the accumulation of data, reduce memory pressure.
(2) when accessing external equipment, such as access high speed camera takes a little, then to for the first time since detecting a little Point (emptying set) is not detected as a complete drawing path, repeatedly drafting is then the step more than constantly repeating.
Further, the smoothness of drafting and whether Caton is codetermined by computer and external equipment (if present) 's.Therefore, in order to guarantee draw fluency need to the coordinate value acquired in real time to screening, to reduce subsequent redundancy It calculates.The present embodiment is to be screened in a upper coordinate value to corresponding threshold value between present coordinate values pair, is arranged, threshold value The installation warrants coordinate value pair and a upper coordinate value pair that currently acquire between acquisition time interval and coordinate value pair between Distance.25ms is less than for sampling time interval in the present embodiment or distance is less than the coordinate value of [3,4] a pixel to sieve Choosing is fallen, and coordinate set is not saved in.
It should be noted that in practical applications, those skilled in the art screening conditions can also be arranged more tight Lattice adjust sampling time interval threshold value and distance threshold, few to quantity with the coordinate value for ensuring to acquire, and then reduce subsequent Calculating and drafting.The calculating that so can avoid many redundancies cracking can also be handled even if configuring general computer, will not Too much influence is brought to the delay and Caton in later period.
Further, when above-mentioned steps S3: being worth according to the distance between adjacent coordinates point sample in coordinate set and sampling Between it is poor, and in conjunction with Bezier draw mode realize the curve style of writing draw.Include:
It is poor according to the distance between adjacent coordinates point value and sampling time in the coordinate set, calculate the picture currently drawn Width;
Color is distributed for the stroke width currently drawn;
Based on the paintbrush width currently drawn and color, mode is drawn to the coordinate set using Bezier In coordinate points sample handled, realize the curve style of writing draw.
Wherein, poor according to the distance between adjacent coordinates point value and sampling time in the coordinate set, calculating is currently drawn The paintbrush width of system, comprising:
Using the range formula of point-to-point transmission, the distance between adjacent coordinates point in the coordinate set is calculated;
It is poor according to the distance between described adjacent coordinates point and sampling time, calculate the paintbrush speed currently drawn;
According to current drafting speed and the velocity standard value being previously set, the paintbrush paintbrush width currently drawn is calculated:
Wherein, currentPwidth indicates that current paintbrush width, norSpeed indicate the standard value of speed, CurrentSpeed represents current paintbrush speed.
It should be noted that the design key of style of writing is exactly the width setting to current paintbrush, the present embodiment will currently be drawn The drafting speed and drafting width of pen are arranged to a kind of non-linear relation, and the style of writing drawn out can interlock to a kind of thickness of user Very smooth, the mellow and full feeling of variation simultaneously.
It preferably, further include using the paintbrush speed currently drawn in the present embodiment to the speed being previously set Standard value is updated, specifically:
Judge whether the paintbrush speed currently drawn is greater than the velocity standard value being previously set;
If so, the velocity standard value being previously set described in increasing;
If it is not, the velocity standard value being previously set described in then reducing.
It should be noted that increase or reduceds amplitude is according to the performance setting of equipment, in the present embodiment, setting is every time Increase 0.12 point, reduces by 0.08 point every time.
It should be understood that the velocity standard value that this implementation is previously set is the standard of the default artificially set Value.Being those skilled in the art obtains one for the current drafting speed standard value that is compared by many experiments.
Corresponding relationship due to calculating current paintbrush width according to present speed cannot be linear relationship, otherwise curve Variation would not be mellow and full smooth, so calculating picture when current drafting according to the velocity standard value after present speed and update Width.
Preferably, in order to which the thickness of curve changes more mellow and full, the present embodiment further include:
The paintbrush width that the current paintbrush width is calculated with the last time is made the difference, the two difference is obtained;
The absolute value diffMaxWidth of the difference is compared with acceptable maximum changing value max_dif is set Compared with;
If difference is more than acceptable changing value, then in the upper paintbrush width once calculated between current paintbrush width (max_dif/diffMaxWidth) secondary drafting is carried out again.
It should be noted that acceptable maximum changing value max_dif is default value set in advance in the present embodiment, It is defaulted as 0.65, if the absolute value diffMaxWidth of difference, in this variation range, the thickness variation of curve is mellow and full Smooth.If the absolute value diffMaxWidth of difference is more than acceptable changing value, in upper primary paintbrush width to working as (max_dif/diffMaxWidth) secondary (using being accepted or rejected into a method) drafting is carried out between preceding paintbrush width again, for change Change obvious place and needs to take repeatedly drafting to make up not mellow and full enough the problem of drafting.
Further, in this embodiment draw mode using Bezier to the drafting of style of writing, drafting it is main Step includes:
(1) four points are successively known as upper point A, current point B, next point C and next point D.We utilize this Four points calculate three control point C1 (AB sections), C2 (BC sections) and C3 (CD sections), the calculating side of three control points C1, C2, C3 Formula is to ask the midpoint of line segment.
(2) after obtaining three control points C1, C2, C3, C1C2 sections of midpoint of line segment, C3C3 sections of midpoint is asked to obtain again Two control points D1 and D2, wherein D1 is nearest apart from current point B, and D2 is nearest apart from next point C, find out control point D1 and D2 it Between offset.
(3) control point cot1 and cot2 are found out according to the offset between control point D1 and D2 again, calculation is as follows:
Int Offset1=B-c1;
Int Offset2=C-c2;
Int cot1=B+Offset1;
Int cot2=C+Offset2;
Cot1=cot1+K* (B-cot1);
Cot2=cot2+K* (C-cot2);
Wherein, * indicates product, and int Offset indicates offset, and K becomes smoothing factor and value between [0,0.5], And effect is best when taking 0.5.A smooth Bezier can be drawn using final cot1, cot2 and C in this way, so Style of writing can be realized by combining the color of the current paintbrush width for drawing section and distribution afterwards.
Mode is drawn using Bezier it should be noted that drawing, at least reaches four points and just starts to draw, Therefore start the individually processing of the case where not reaching at four needs.Graphical pointv draws line segment.
Preferably, the present embodiment further include:
The slope between collected two coordinate points samples at first is calculated in the coordinate set, and according to slope to song Line beginning is lengthened, and realizes that the vigour of style in writing at the curve beginning is drawn;
When the last one coordinate points sample drawing is completed in the coordinate set, according to the last one coordinate points sample Draw brush width realizes that the vigour of style in writing at the curve ending is drawn to lengthening at curve ending.
It should be noted that the present embodiment also draws the vigour of style in writing of the beginning and end for the curve once drawn, one As the draw brush width that starts all very little, cannot be a rectangular section and the modification for needing color combining and shade. The present embodiment is arranged especially by the vigour of style in writing that following steps are started:
Calculate in the coordinate set slope k between collected two coordinate points samples at first;
According to slope k, increase n vigour of style in writing coordinate points near first coordinate points sample, and according to the drafting style of writing The smallest paintbrush width carries out lengthening drafting to curve beginning in the process, this step mainly extends drawing for user according to slope Track processed generally takes distance to be not less than the coordinate points of 1 pixel and no more than 3 pixel, sits to the opposite direction that user draws Punctuate quantity is generally 2 or 3;
Color is set to the curved portion drawn is lengthened, the color which draws curved portion collects at first than described Two coordinate points samples between drafting it is of light color, can pass through adjust color clarity realize.
Further, the drafting style of writing that ending needs to combine user last, if necessary to weight pen then corresponding overstriking, otherwise Reduce paintbrush width, while the variation of design colours.Specifically:
Realize that the vigour of style in writing at the curve ending is drawn, comprising:
End is drawn for finger or left mouse button lifts setting mark drawFinsh;
When detecting drawFinsh mark, the paintbrush width at the end of draws set distance to curve knot again It is lengthened at tail.
It should be noted that the vigour of style in writing design at ending haves no need to change the transparency of color, unless the speed drawn is very Fastly, user has the demand that a suffix is left at ending, then draws hatching effect.
It is set it should be noted that the present embodiment carries out vigour of style in writing optimization by the beginning and end to the curve once drawn Meter, ensure that the painting and calligraphy effect of drafting is more nearly the effect of true painting and calligraphy pieces.
Preferably due to the style of writing for combining the color of the current paintbrush width for drawing section and distribution to realize is drawn, picture Sawtooth sense is serious, therefore the present embodiment carries out sawtooth as follows and optimizes:
The curve that one, the writing brush is drawn is replicated, facsimile log is obtained;
The paintbrush width of the facsimile log is increased into m (can value be 4) pixels, the brush color of facsimile log Transparency is reduced using as background;
It carries out simulation writing brush again in the background and carries out Drawing of Curve.
The present embodiment on the basis of original by, in a current curve of duplication, increasing paintbrush width, reducing paintbrush It is used as background after former coloured transparency, draws curve mellow and full, the sawtooth sense that can reach curve smoothing again on this background It is unobvious, while having the effect of style of writing and the vigour of style in writing.Its principle is style of writing using drawing the superimposed method of two curves, two Main difference is that background colour and thickness are different, the graph color for being plotted in upper layer depends on user's selection, curve for curve Thickness is from system-computed, and the color of upper layer color is reduced to 6% by the graph color for being plotted in lower layer, and curve thickness is fixed 4 pixels are added in the curve thickness of upper layer, user can be according to this fixed value of the apparatus modifications of oneself;The vigour of style in writing is then to be prolonged Long track drafting, drawing result is as shown in Figure 2 after optimization.
It should be noted that disclosed technical solution can realize the optimization to fluency is drawn through this embodiment, ensure that Drafting can be stablized under low latency;The optimization to the style of writing vigour of style in writing is realized, ensure that there can be the feeling for drawing writing brush;It realizes Optimization to aesthetics such as curve sawtooth, shades, ensure that can be after drawing with a kind of smooth, smooth form exhibition Now give user.
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 and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of method for drafting for simulating writing brush style of writing, which is characterized in that the curve beginning and end of one, writing brush drafting For the vigour of style in writing, midium line segment is style of writing, comprising:
Real-time coordinate acquisition point sample, and the coordinate points sample of acquisition is stored in coordinate set according to sample time order;
The distance between coordinate points sample threshold value and sampling time difference threshold value are set, with to the coordinate points sample in coordinate set into Row screening;
It is poor according to the distance between adjacent coordinates point sample value and sampling time in coordinate set, and Bezier is combined to draw Mode realizes that the style of writing of the curve is drawn.
2. the method for drafting of simulation writing brush style of writing as described in claim 1, which is characterized in that further include:
The slope between collected two coordinate points samples at first is calculated in the coordinate set, and curve is opened according to slope Head is lengthened, and realizes that the vigour of style in writing at the curve beginning is drawn;
When the last one coordinate points sample drawing is completed in the coordinate set, according to the drafting of the last one coordinate points sample Paintbrush width realizes that the vigour of style in writing at the curve ending is drawn to lengthening at curve ending.
3. the method for drafting of simulation writing brush style of writing as claimed in claim 2, which is characterized in that in the coordinates computed set most The first slope between collected two coordinate points samples, and curve beginning is lengthened according to slope, realize the curve The vigour of style in writing at beginning is drawn, comprising:
Calculate in the coordinate set slope k between collected two coordinate points samples at first;
According to slope k, increase n vigour of style in writing coordinate points near first coordinate points sample, and according to the drafting style of writing process In the smallest paintbrush width to curve beginning carry out lengthening drafting;
Color is set to the curved portion drawn is lengthened, the color which draws curved portion is more collected at first by two than described Drafting between a coordinate points sample is of light color.
4. the method for drafting of simulation writing brush style of writing as claimed in claim 2, which is characterized in that described according to phase in coordinate set The distance between adjacent coordinate points sample value and sampling time are poor, and draw the pen that mode realizes the curve in conjunction with Bezier Touching is drawn, comprising:
It is poor according to the distance between adjacent coordinates point value and sampling time in the coordinate set, it is wide to calculate the paintbrush currently drawn Degree;
Color is distributed for the stroke width currently drawn;
Based on the paintbrush width currently drawn and color, mode is drawn in the coordinate set using Bezier Coordinate points sample is handled, and realizes that the style of writing of the curve is drawn.
5. the method for drafting of simulation writing brush style of writing as claimed in claim 4, which is characterized in that described according to the coordinate set The distance between middle adjacent coordinates point value and sampling time are poor, calculate the paintbrush width currently drawn, comprising:
Calculate the distance between adjacent coordinates point in the coordinate set;
It is poor according to the distance between described adjacent coordinates point and sampling time, calculate the paintbrush speed currently drawn;
According to current drafting speed and the velocity standard value being previously set, the paintbrush paintbrush width currently drawn is calculated:
Wherein, currentPwidth indicates that current paintbrush width, norSpeed indicate the standard value of speed, CurrentSpeed represents current paintbrush speed.
6. the method for drafting of simulation writing brush style of writing as claimed in claim 5, which is characterized in that further include currently being drawn using described The paintbrush speed of system is updated the velocity standard value being previously set, specifically:
Judge whether the paintbrush speed currently drawn is greater than the velocity standard value being previously set;
If so, the velocity standard value being previously set described in increasing;
If it is not, the velocity standard value being previously set described in then reducing.
7. the method for drafting of simulation writing brush style of writing as claimed in claim 5, which is characterized in that further include:
The paintbrush width that the current paintbrush width is calculated with the last time is made the difference, the two difference is obtained;
The absolute value diffMaxWidth of the difference is compared with acceptable maximum changing value max_dif is set;
If difference be more than acceptable changing value, then the upper paintbrush width once calculated between current paintbrush width again Carry out (max_dif/diffMaxWidth) secondary drafting.
8. the method for drafting of simulation writing brush style of writing as claimed in claim 2, which is characterized in that described according in coordinate set The distance between adjacent coordinates point sample value and sampling time are poor, and draw mode in conjunction with Bezier and realize the curve After style of writing is drawn, further includes:
The curve that one, the writing brush is drawn is replicated, facsimile log is obtained;
The paintbrush width of the facsimile log is increased into m pixel, the transparency reduction of the brush color of facsimile log using as Background;
It carries out simulation writing brush again in the background and carries out Drawing of Curve.
9. the method for drafting of simulation writing brush style of writing as claimed in claim 4, which is characterized in that further include:
When coordinate points sample in the coordinate set is less than four, carries out graphical pointv or draw line segment processing.
10. as claimed in claim 2 simulation writing brush style of writing method for drafting, which is characterized in that it is described in coordinate set most The latter coordinate points sample drawing complete when, according to the last one coordinate points sample draw brush width at curve ending into Row lengthens, and realizes that the vigour of style in writing at the curve ending is drawn, comprising:
End is drawn for finger or left mouse button lifts setting mark drawFinsh;
When detecting drawFinsh mark, the paintbrush width at the end of draws set distance again with to curve ending It is lengthened.
CN201811095953.5A 2018-09-19 2018-09-19 A kind of method for drafting for simulating writing brush style of writing Pending CN109445887A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811095953.5A CN109445887A (en) 2018-09-19 2018-09-19 A kind of method for drafting for simulating writing brush style of writing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811095953.5A CN109445887A (en) 2018-09-19 2018-09-19 A kind of method for drafting for simulating writing brush style of writing

Publications (1)

Publication Number Publication Date
CN109445887A true CN109445887A (en) 2019-03-08

Family

ID=65532942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811095953.5A Pending CN109445887A (en) 2018-09-19 2018-09-19 A kind of method for drafting for simulating writing brush style of writing

Country Status (1)

Country Link
CN (1) CN109445887A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116309941A (en) * 2023-05-11 2023-06-23 北京元跃科技有限公司 Mobile equipment lineation line correction method and system
US11687233B2 (en) 2020-04-30 2023-06-27 Boe Technology Group Co., Ltd. Handwriting processing method, touch display device, computer device and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699518A (en) * 2009-10-30 2010-04-28 华南理工大学 Method for beautifying handwritten Chinese character based on trajectory analysis
CN102521858A (en) * 2011-11-28 2012-06-27 北京盛世宣合信息科技有限公司 Handwriting generating method for electronic writing brush
CN103559732A (en) * 2013-10-15 2014-02-05 锐达互动科技股份有限公司 Method for generating writing brush handwriting
CN104714742A (en) * 2013-12-12 2015-06-17 鸿合科技有限公司 Soft pen realization method and device based on touch screen
CN105183341A (en) * 2015-08-07 2015-12-23 广州汽车集团股份有限公司 Handwriting correcting method and system of touch screen
CN106125963A (en) * 2016-06-24 2016-11-16 江西金格科技股份有限公司 On a kind of equipment without pressure sensitivity former person's handwriting Handwriting Signature System and the former person's handwriting of PDF document hand-written sign method
CN106293232A (en) * 2016-08-11 2017-01-04 江苏中威科技软件系统有限公司 A kind of hand-written inputting method realizing vigour of style in writing effect and system
CN107526526A (en) * 2017-09-19 2017-12-29 广州视源电子科技股份有限公司 Method and device for determining pressure-sensitive handwriting area
CN107577412A (en) * 2017-08-08 2018-01-12 北京鑫博腾飞科技有限公司 A kind of digital painting and calligraphy implementation method and device that sensing is lifted based on pressing

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699518A (en) * 2009-10-30 2010-04-28 华南理工大学 Method for beautifying handwritten Chinese character based on trajectory analysis
CN102521858A (en) * 2011-11-28 2012-06-27 北京盛世宣合信息科技有限公司 Handwriting generating method for electronic writing brush
CN103559732A (en) * 2013-10-15 2014-02-05 锐达互动科技股份有限公司 Method for generating writing brush handwriting
CN104714742A (en) * 2013-12-12 2015-06-17 鸿合科技有限公司 Soft pen realization method and device based on touch screen
CN105183341A (en) * 2015-08-07 2015-12-23 广州汽车集团股份有限公司 Handwriting correcting method and system of touch screen
CN106125963A (en) * 2016-06-24 2016-11-16 江西金格科技股份有限公司 On a kind of equipment without pressure sensitivity former person's handwriting Handwriting Signature System and the former person's handwriting of PDF document hand-written sign method
CN106293232A (en) * 2016-08-11 2017-01-04 江苏中威科技软件系统有限公司 A kind of hand-written inputting method realizing vigour of style in writing effect and system
CN107577412A (en) * 2017-08-08 2018-01-12 北京鑫博腾飞科技有限公司 A kind of digital painting and calligraphy implementation method and device that sensing is lifted based on pressing
CN107526526A (en) * 2017-09-19 2017-12-29 广州视源电子科技股份有限公司 Method and device for determining pressure-sensitive handwriting area

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11687233B2 (en) 2020-04-30 2023-06-27 Boe Technology Group Co., Ltd. Handwriting processing method, touch display device, computer device and storage medium
CN116309941A (en) * 2023-05-11 2023-06-23 北京元跃科技有限公司 Mobile equipment lineation line correction method and system
CN116309941B (en) * 2023-05-11 2024-01-23 北京元跃科技有限公司 Mobile equipment lineation line correction method and system

Similar Documents

Publication Publication Date Title
US8977077B2 (en) Techniques for presenting user adjustments to a digital image
CN103093456B (en) Corn ear character index computing method based on images
CN109445887A (en) A kind of method for drafting for simulating writing brush style of writing
CN104143186B (en) A kind of SLIC super-pixel piecemeal optimization method
CN102903128A (en) Video image content editing and spreading method based on local feature structure keeping
CN105957124B (en) With the natural image color edit methods and device for repeating situation elements
CN101655993A (en) Multi-resolution modeling method for three dimensional model of complex building
CN105389843A (en) Global illumination real-time rendering method based on radial basis function neural network fitting
CN101877130A (en) Moving target tracking method based on particle filter under complex scene
CN103049907A (en) Interactive image segmentation method
CN102289840A (en) Volume rendering method for designing color transmission function for color blindness
CN101984465B (en) Image seamless copying method
CN103761734A (en) Binocular stereoscopic video scene fusion method for keeping time domain consistency
CN109461194A (en) A kind of method for drafting for simulating art designing pen style of writing
CN108198143A (en) A kind of dimensional topography avoiding cracks method that LoD levels is gone to constrain
CN108986024A (en) A kind of regularly arranged processing method of laser point cloud based on grid
CN111782745B (en) Space-time big data grid coding efficient visualization method and system
US20070266307A1 (en) Auto-layout of shapes
US6542157B1 (en) Font decoration by automatic mesh fitting
CN103455973B (en) Method and device for drawing screen images
CN107992345A (en) A kind of application icon placement region method to set up and device
US20170140569A1 (en) System and method for optimized sparse volume rendering
CN107788600A (en) A kind of two-dimensional digital garment fashion drawing design system
CN102073468B (en) Method for realizing image edge blending based on window system
CN106454509A (en) Advertisement image detection method and device

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: 230000 Yafu Park, Juchao Economic Development Zone, Chaohu City, Hefei City, Anhui Province

Applicant after: ANHUI HUISHI JINTONG TECHNOLOGY Co.,Ltd.

Address before: 102, room 602, C District, Hefei National University, Mount Huangshan Road, 230000 Hefei Road, Anhui, China

Applicant before: ANHUI HUISHI JINTONG TECHNOLOGY Co.,Ltd.