Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for generating writing brush handwriting

A handwriting and brush technology, applied in the field of drawing, can solve the problems of lack of features and the inability to display the effect in real time during the drawing process, and achieve the effect of high drawing efficiency

Active Publication Date: 2014-02-05
RETURNSTAR INTERACTIVE TECH GRP
View PDF5 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] (1) The effect cannot be displayed in real time during the drawing process, and the handwriting effect can only be displayed after the background matching operation is completed after the drawing is confirmed;
[0004] (2) Different users should have different styles, but this method can only display several preset styles in the background, without characteristics

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for generating writing brush handwriting
  • Method for generating writing brush handwriting
  • Method for generating writing brush handwriting

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0122] Step 10. Select a device that can display basic graphics (such as straight lines, curves, etc.) to act as a canvas;

[0123] Step 20. Obtain the position of the track point where the device is pressed: DownPoint;

[0124] Step 30, initialize related variables:

[0125] Step 301, set the basic pen width PenWidth0, and make the previous handwriting prePenWidth=PenWidth0; the color of the handwriting can also be set as required: PenColor0;

[0126] Step 302, set the number of drawing points Pointk (k=1,2,3,..n) to 4, namely n=4; then make:

[0127] Point1 = DownPoint;

[0128] Point2 = Point1;

[0129] Point3 = Point1;

[0130] Point4 = Point1;

[0131] Step 40, when there is movement on the device, write down the position of the current track point after the movement: MovePoint;

[0132] Step 50, seek the midpoint coordinates between the current track point Point4 of step 40 and the previous track point Point3, and record and replace the coordinates of the current tra...

Embodiment 2

[0162] The difference between the second embodiment and the first embodiment is that adding pen and ink dilution treatment, that is, adding the "transparency" factor, usually the faster the writing speed, the thinner the "pen and ink" should be in addition to the smaller the width of the handwriting.

[0163] Therefore, corresponding adjustments are made in some steps in Embodiment 1, and the adjustments are as follows:

[0164] 1. In the second embodiment, step 303 is added in step 30,

[0165] Step 303 , initialize ink dilution preAlpha: set preAlpha=PenAlpha0, where PenAlpha0=128.

[0166] 2. Embodiment two increases the specific calculation process of ink dilution in step 60:

[0167] Step 621, make PenAlpha=PenAlpha0*k3; wherein, k3=here directly take the k2 mentioned in the process of calculating the pen width;

[0168] Step 622, judge the difference in transparency between the two strokes before and after, if:

[0169] abs(PenAlpha-preAlpha)>3

[0170] Then adjust a...

Embodiment 3

[0177] The difference between this embodiment three and implementation one is:

[0178] 1. Step 70 in the third embodiment is only executed once, and the value of A is 45°;

[0179] 2. Step 90 in the third embodiment connects the drawing points with a straight line;

[0180] 3. Embodiment 3 During the initialization process in step 30, the value of the initial pen width is set to be small.

[0181] The remaining steps are the same as in Embodiment 1 and will not be repeated here. The final drawing effect is as follows Figure 4 As shown, the drawing effect is similar to that of the first embodiment, but because step 70 is only executed once, and step 90 connects the drawing points with a straight line, the implementation will appear simpler and the amount of calculation will be smaller.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method for generating writing brush handwriting. The method includes the steps of selecting a device capable of displaying fundamental figures to serve as canvas, obtaining the positions of pressed track points of the device, initializing correlated variables, writing down the positions of current track points after movement when the movement occurs on the device, obtaining coordinates of midpoints between the current track points and the prior track points to replace coordinates of the current track points, calculating the practical width of the current handwriting, converting the tracking points into drawing points, setting a line cap on the device, enabling the drawing points to be sequentially connected, carrying out forward assignment on the track points until the device is bounced off, and then drawing up the finial handwriting. According to the method for generating the writing brush handwriting, the writing brush handwriting is generated by analyzing the distribution characteristics of the track points, tracks can be received in sequence, a fundamental drawing function is combined for simulation drawing, different users respectively have the characteristic handwriting, the drawing efficiency is high, and real-time display can be further achieved.

Description

technical field [0001] The invention relates to the field of drawing, in particular to a method for simulating brush strokes by track points. Background technique [0002] In recent years, the field of graphics has developed rapidly in terms of simulating human input. During this process, simulating the effect of calligraphy has become the focus of this field. The traditional approach is: the device obtains a list of track points, and then performs matching operations on these track points with the font library arranged in the background, and then displays the closest font style. For example, there are: Wang Xizhi's style, Huang Tingjian's style, etc. Although this method can also simulate the effect of brush handwriting, it has the following shortcomings: [0003] (1) The effect cannot be displayed in real time during the drawing process, and the handwriting effect can only be displayed after the background matching operation is completed after the drawing is confirmed; ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06T11/80
Inventor 丁万年洪文洁陈日良何永安
Owner RETURNSTAR INTERACTIVE TECH GRP
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More