CN109461194A - A kind of method for drafting for simulating art designing pen style of writing - Google Patents

A kind of method for drafting for simulating art designing pen style of writing Download PDF

Info

Publication number
CN109461194A
CN109461194A CN201811096623.8A CN201811096623A CN109461194A CN 109461194 A CN109461194 A CN 109461194A CN 201811096623 A CN201811096623 A CN 201811096623A CN 109461194 A CN109461194 A CN 109461194A
Authority
CN
China
Prior art keywords
writing
style
coordinate
drafting
drawn
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
CN201811096623.8A
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 CN201811096623.8A priority Critical patent/CN109461194A/en
Publication of CN109461194A publication Critical patent/CN109461194A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves

Landscapes

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

Abstract

The invention discloses a kind of method for drafting for simulating art designing pen style of writing, belong to computer graphics disposal technology field, including 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;According to the slope between adjacent coordinates point sample each in the coordinate set, the paintbrush width currently drawn is calculated, and draws mode in conjunction with Bezier and realizes that the style of writing of the curve is drawn.The optimization to fluency is drawn can be achieved in the present invention, and ensure that can stablize drafting 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 art designing pen;The optimization to aesthetics such as curve sawtooth, shades is realized, ensure that be presented to user after drawing in a kind of smooth, smooth form.

Description

A kind of method for drafting for simulating art designing pen style of writing
Technical field
The present invention relates to computer graphics disposal technology field, in particular to a kind of drafting side for simulating art designing pen style of writing Method.
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 art designing pen style of writing effect is poor.Second is that being mentioned in conjunction with development language The function interface of confession is drawn.It mainly utilizes C++ Bezier to realize and draws, and calculates draw needs first Data, be plotted to curve in conjunction with Bezier, then subsequent modification is carried out to curve.It has problems in that: due to To pass through a large amount of calculating and plotting, it may appear that delay and Caton phenomenon, interactive experience are poor;And corresponding technical support also needs The expense for paying 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 art designing pen style of writing, to guarantee in low latency Stablize and draws.
In order to achieve the above object, the present invention is using a kind of method for drafting for simulating art designing pen style of writing, the art designing pen one The curve beginning and end of drafting is the vigour of style in writing, and 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;
According to the slope between adjacent coordinates point sample each in the coordinate set, the paintbrush width currently drawn is calculated, And mode is drawn in conjunction with Bezier and 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, the slope according between adjacent coordinates point sample each in coordinate set, what calculating was currently drawn Paintbrush width, and draw mode in conjunction with Bezier and realize that the style of writing of the curve is drawn, comprising:
A coordinate system is set, according to adjacent coordinates point sample each in the coordinate set, determines one in the coordinate system Straight line;
If the straight line is fallen in the reference axis x-axis or y-axis, current paintbrush is drawn into width and is set as normal value;
If the straight line is fallen in the quadrant of the coordinate system, current paintbrush is drawn into width between the nodal value of setting Carry out linear change.
Further, when the straight line is fallen in the quadrant of the coordinate system, current paintbrush is drawn into width and is being set Nodal value between carry out linear change, comprising:
When the straight line falls in the first quartile of the coordinate system, the current paintbrush draw width the normal value with Linear change is carried out between maximum value, maximum value and normal value back and forth;
When the straight line falls in the second quadrant of the coordinate system, the current paintbrush draw width the normal value with Linear change is carried out between minimum value, minimum value and normal value back and forth;
When the straight line falls in the third quadrant of the coordinate system, the current paintbrush draw width the normal value with Linear change is carried out between maximum value, maximum value and normal value back and forth;
When the straight line falls in the fourth quadrant of the coordinate system, the current paintbrush draw width the normal value with Linear change is carried out between minimum value, minimum value and normal value back and forth.
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.
Further, in the slope according between adjacent coordinates point sample each in coordinate set, current draw is calculated Paintbrush width, and in conjunction with Bezier draw mode realize the curve style of writing draw after, further includes:
The curve that the art designing pen one 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 art designing pen 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 by the coordinate points sample to acquisition into The phenomenon that row screening, reduces the calculating of redundancy, ensure that the fluency of drafting, has avoided the occurrence of later period delay and Caton.Simultaneously The optimization to the style of writing vigour of style in writing is realized, ensure that the effect of simulation art designing pen drafting is closer to the effect of true painting and calligraphy pieces Fruit.
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 art designing pen style of writing;
Fig. 2 is the result schematic diagram simulating art designing pen 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 a kind of method for drafting for simulating art designing pen style of writing, the art designing pen one is drawn The curve beginning and end of system 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 to the slope between adjacent coordinates point sample each in the coordinate set, it is wide to calculate the paintbrush currently drawn Degree, and draw mode in conjunction with Bezier and realize 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 art designing pen of software version, which draws the first step, coordinate value is to being The basis of Drawing of Curve, it is determined that final which type of path with one of curve is shown.It is right in above-mentioned steps S1 The acquisition mode of coordinate points 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, has drawn one, the track that user draws can be real When be plotted on painting canvas, currently empty coordinate set, can 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 Lead to the delay and Caton in later period.
Further, it above-mentioned steps S3: according to the slope between adjacent coordinates point sample each in the coordinate set, calculates In the paintbrush width currently drawn, comprising:
A coordinate system is set, according to adjacent coordinates point sample each in the coordinate set, determines one in the coordinate system Straight line;
If the straight line is fallen in the reference axis x-axis or y-axis, current paintbrush is drawn into width and is set as normal value;
If the straight line is fallen in the quadrant of the coordinate system, current paintbrush is drawn into width between the nodal value of setting Carry out linear change.
Specifically, a coordinate system is imagined in the present embodiment, is rotated clockwise since positive direction of the x-axis, and starting paintbrush is wide Degree be normal value normalCurrentwidth, reach with 45 degree of positive direction of the x-axis angle when reach minimum value MinCurrentwidth returns to normal value normalCurrentwidth when reaching negative direction of the y-axis, with negative direction of the y-axis angle 45 Reach maximum paintbrush width maxCurrentwidth when spending, reaches negative direction of the x-axis and return to normal value NormalCurrentwidth reaches minimum value minCurrentwidth when with 45 degree of negative direction of the x-axis angle, it is square to reach y-axis To normal value normalCurrentwidth is returned to, reach maximum value when with 45 degree of positive direction of the y-axis angle MaxCurrentwidth reaches positive direction of the x-axis and draws normal value normalCurrentwidth.Intermediate variation be it is linear, It is smooth and mellow and full in view of curve, it needs to carry out a series of judgement and reaches a nonlinear result.Wherein, normal value (slope is 0 or is not present), maximum value (slope 1) and minimum value (slope is -1) are a fixed values.
Specific calculating process are as follows: determine straight line by two coordinate points, obtain the slope of straight line.Calculation is as follows:
Double ragX=x2-x1;
Double ragY=y2-y1;
Double currentSin=ragY/ (Math.Sqrt (ragX*ragX+ragY*ragY));
The present embodiment does not consider tangent value tan by asking sine value sin and cosine value cos to be ok, because of tangent value There are positive and negative infinite value, do not utilize the calculating in later period.
After obtaining sine value sin or cosine value cos value, if falling in (i.e. ragX=0 or the ragY=in reference axis 0), directly current paintbrush width is set as normal value normalCurrentwidth, and the remaining needs fallen in four quadrants are independent Processing, by taking the processing method of first quartile as an example:
First quartile: (ragX>0 and ragY<0) paintbrush change width rule be normalCurrentwidth with Change back and forth between maxCurrentwidth and normalCurrentwidth, calculation is as follows:
If (currentSin>=- 1*Math.Sqrt (2)/2&&currentSin<0);
CurrentPwidth [i]=Math.Sqrt (2) * (normalCurrentwidth-maxCurrentwidth) * currentSin+normalCurrentwidth;
else if(currentSin>-1&&currentSin<-1*Math.Sqrt(2)/2)
CurrentPwidth [i]=(maxCurrentwidth-normalCurrentwidth) * (Math.Sqrt (2)+ 2)*currentSin+maxCurrentwidth*(2+Math.Sqrt(2))-normalCurrentwidth*(Math.Sqrt (2)+1);
It should be understood that the current paintbrush draws width when the straight line falls in the second quadrant of the coordinate system Carry out linear change back and forth between the normal value and minimum value, minimum value and normal value;
When the straight line falls in the third quadrant of the coordinate system, the current paintbrush draw width the normal value with Linear change is carried out between maximum value, maximum value and normal value back and forth;
When the straight line falls in the fourth quadrant of the coordinate system, the current paintbrush draw width the normal value with Linear change is carried out between minimum value, minimum value and normal value back and forth.
The present embodiment by by current paintbrush draw width between the normal value, minimum value, maximum value come back into Row linear change so that the track drawn have a kind of thickness change and reality in art designing pen track drafting have it is much the same Effect.
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 not less than the seat of 1 pixel and no more than 3 pixel (1 to 3) to the opposite direction that user draws Punctuate, coordinate points quantity are 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 the art designing pen one 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 art designing pen 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.Calculating and plotting curve is using Bezier, and the thickness of drafting is (namely Paintbrush width) it is computed and realizes thickness variation, a kind of feeling of style of writing is presented, the variation of paintbrush width will generate different pens Touch effect.The calculating of above-mentioned slope is exactly style of writing in order to obtain.Since the curve that Bezier is drawn has sawtooth effect, this reality It applies example and has done further modification, in addition one layer of background colour, can realize smooth smooth effect, drawing result such as Fig. 2 after optimization It is shown.
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 the feeling that there can be art designing pen to draw;It is real The optimization to aesthetics such as curve sawtooth, shades is showed, ensure that can be after drawing in a kind of smooth, smooth form It is presented to 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 (9)

1. it is a kind of simulate art designing pen style of writing method for drafting, which is characterized in that the art designing pen one drafting curve beginning and Ending is the vigour of style in writing, and 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;
According to the slope between adjacent coordinates point sample each in the coordinate set, the paintbrush width currently drawn is calculated, and is tied It closes Bezier and draws the style of writing drafting that mode realizes the curve.
2. the method for drafting of simulation art designing pen 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 art designing pen style of writing as claimed in claim 2, which is characterized in that in the coordinates computed set Slope between collected two coordinate points samples at first, and curve beginning is lengthened according to slope, realize the song The vigour of style in writing at line beginning is drawn, comprising:
Calculate in the coordinate set slope between collected two coordinate points samples at firstk
According to slopek, increase near first coordinate points samplenA vigour of style in writing coordinate points, 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 art designing pen style of writing as described in claim 1, which is characterized in that described according in coordinate set Slope between each adjacent coordinates point sample calculates the paintbrush width currently drawn, and it is real to combine Bezier to draw mode The style of writing of the existing curve is drawn, comprising:
A coordinate system is set, according to adjacent coordinates point sample each in the coordinate set, determines straight line in the coordinate system;
If the straight line falls in the reference axisxAxis oryWhen on axis, current paintbrush is drawn into width and is set as normal value;
If the straight line is fallen in the quadrant of the coordinate system, current paintbrush is drawn into width and is carried out between the nodal value of setting Linear change.
5. the method for drafting of simulation art designing pen style of writing as claimed in claim 4, which is characterized in that fall in the seat in the straight line When marking in the quadrant of system, current paintbrush is drawn into width and carries out linear change between the nodal value of setting, comprising:
When the straight line falls in the first quartile of the coordinate system, the current paintbrush draws width in the normal value and maximum Linear change is carried out between value, maximum value and normal value back and forth;
When the straight line falls in the second quadrant of the coordinate system, the current paintbrush draws width in the normal value and minimum Linear change is carried out between value, minimum value and normal value back and forth;
When the straight line falls in the third quadrant of the coordinate system, the current paintbrush draws width in the normal value and maximum Linear change is carried out between value, maximum value and normal value back and forth;
When the straight line falls in the fourth quadrant of the coordinate system, the current paintbrush draws width in the normal value and minimum Linear change is carried out between value, minimum value and normal value back and forth.
6. the method for drafting of simulation art designing pen style of writing as claimed in claim 4, 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.
7. the method for drafting of simulation art designing pen style of writing as claimed in claim 4, which is characterized in that described according to coordinate set In slope between each adjacent coordinates point sample, calculate the paintbrush width currently drawn, and Bezier is combined to draw mode After realizing that the style of writing of the curve is drawn, further includes:
The curve that the art designing pen one is drawn is replicated, facsimile log is obtained;
The paintbrush width of the facsimile log is increasedmA pixel, the transparency of the brush color of facsimile log reduce using as Background;
It carries out simulation art designing pen again in the background and carries out Drawing of Curve.
8. the method for drafting of simulation art designing pen 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.
9. as claimed in claim 2 simulation art designing pen 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.
CN201811096623.8A 2018-09-19 2018-09-19 A kind of method for drafting for simulating art designing pen style of writing Pending CN109461194A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811096623.8A CN109461194A (en) 2018-09-19 2018-09-19 A kind of method for drafting for simulating art designing pen style of writing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811096623.8A CN109461194A (en) 2018-09-19 2018-09-19 A kind of method for drafting for simulating art designing pen style of writing

Publications (1)

Publication Number Publication Date
CN109461194A true CN109461194A (en) 2019-03-12

Family

ID=65606834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811096623.8A Pending CN109461194A (en) 2018-09-19 2018-09-19 A kind of method for drafting for simulating art designing pen style of writing

Country Status (1)

Country Link
CN (1) CN109461194A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032315A (en) * 2019-03-28 2019-07-19 广州柏视数据科技有限公司 A kind of target of prophylactic radiotherapy contour line quick modification method
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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63286979A (en) * 1987-05-19 1988-11-24 Sanyo Electric Co Ltd Method for generating calligraphic style
CN101118650A (en) * 2007-09-14 2008-02-06 广东威创日新电子有限公司 Writing style instantaneous realizing method
CN101699518A (en) * 2009-10-30 2010-04-28 华南理工大学 Method for beautifying handwritten Chinese character based on trajectory analysis
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63286979A (en) * 1987-05-19 1988-11-24 Sanyo Electric Co Ltd Method for generating calligraphic style
CN101118650A (en) * 2007-09-14 2008-02-06 广东威创日新电子有限公司 Writing style instantaneous realizing method
CN101699518A (en) * 2009-10-30 2010-04-28 华南理工大学 Method for beautifying handwritten Chinese character based on trajectory analysis
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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
编委会: "《新编中文 Photoshop 7.0 精彩制作 150 例》", 西北工业大学出版社, pages: 67 - 68 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032315A (en) * 2019-03-28 2019-07-19 广州柏视数据科技有限公司 A kind of target of prophylactic radiotherapy contour line quick modification method
CN110032315B (en) * 2019-03-28 2021-04-27 广州柏视数据科技有限公司 Rapid modification method for contour line of radiotherapy target area
US11687233B2 (en) 2020-04-30 2023-06-27 Boe Technology Group Co., Ltd. Handwriting processing method, touch display device, computer device and storage medium

Similar Documents

Publication Publication Date Title
Hajduk The concept of a smart city in urban management
CN102937848B (en) Method for editing handwritings and electronic equipment
CN110675728B (en) Generation method, device and equipment of thermodynamic diagram and computer readable storage medium
CN103310474B (en) A kind of implementation method of original handwriting and system
CN100520692C (en) Hand-written input method capable of implementing writing style effect
CN102629271B (en) Complex data visualization method and equipment based on stacked tree graph
CN102073981B (en) Point group geographic entity selection method under the restriction of correlated elements
CN100538726C (en) Automatic input device for cloth sample image based on image vector technology
CN109461194A (en) A kind of method for drafting for simulating art designing pen style of writing
CN106294822A (en) A kind of electric power data visualization system
CN105894506B (en) A kind of facial image fuzziness computational methods and device
CN102800052A (en) Semi-automatic digital method of non-standard map
CN107291802A (en) Relation map methods of exhibiting and device
CN103530852A (en) Method for correcting distortion of lens
CN109445887A (en) A kind of method for drafting for simulating writing brush style of writing
CN106934058A (en) Vector data read method and system, vector data method for visualizing and system
CN109993751A (en) The semi-automatic Precise Segmentation of tooth jaw of reconciliation scalar field is perceived based on recess
CN101510273A (en) Method for rapidly counting city planning earth area and computer program
CN107817935A (en) Application interface display method and device, terminal and computer readable storage medium
CN101840582A (en) Boundary digitizing method of cadastral plot
CN110084814A (en) Surface covering measurement method, device, computer equipment and storage medium
CN102445998A (en) Method to obtain projection position of remote-control light spot and interactive projection system
CN104637075A (en) Automatic rapid mapping method for sand body
CN103377477B (en) A kind of high-resolution remote sensing image multilayer division method
CN110264548A (en) A kind of attributive character information space analysis method of land data

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.