CN106611434A - Drawing method and drawing device of text shading - Google Patents

Drawing method and drawing device of text shading Download PDF

Info

Publication number
CN106611434A
CN106611434A CN201510703031.8A CN201510703031A CN106611434A CN 106611434 A CN106611434 A CN 106611434A CN 201510703031 A CN201510703031 A CN 201510703031A CN 106611434 A CN106611434 A CN 106611434A
Authority
CN
China
Prior art keywords
shading
word
target area
arrangement mode
size
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
CN201510703031.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.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201510703031.8A priority Critical patent/CN106611434A/en
Publication of CN106611434A publication Critical patent/CN106611434A/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/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention provides a drawing method and a drawing device of text shading. The drawing method of the drawing method comprises the following steps: receiving an instruction of drawing the text shading; determining a target area of drawing the text shading; determining the number and an arrangement mode of shading texts needing to be drawn in the target area according to the size of the target area and the size of the set shading texts; and drawing the text shading in the target area based on the determined number of the shading texts, the arrangement mode and parameters of the set shading texts. By adoption of the technical scheme provided by the invention, the effect of adding the text shading in publications is realized, the design effect of the publications is optimized, the design demands of designers are satisfied, and the application experience of the designers is improved beneficially.

Description

The method for drafting and drawing apparatus of word shading
Technical field
The present invention relates to technical field of image processing, in particular to a kind of drafting of word shading Method and a kind of drawing apparatus of word shading.
Background technology
For the publication of design class, designer has in the design process the demand for increasing shading, and At present when shading is increased, image shading is generally to increase, can not still provide designer increases word bottom The function of stricture of vagina.
With the raising required design effect, designer is wanted in the electronic publication of design Addition word shading, and at present related technical scheme can not provide designer's addition word bottom The function of stricture of vagina.
Therefore, how to realize adding word shading in the publication, to lift the use of designer Experience becomes technical problem urgently to be resolved hurrily.
The content of the invention
The present invention is based at least one above-mentioned technical problem, it is proposed that a kind of new word shading Drafting scheme, realizes the effect for adding word shading in the publication, optimizes the design of publication Effect, meets the design requirement of designer, is conducive to lifting the experience of designer.
In view of this, the present invention proposes a kind of method for drafting of word shading, including:Receive and draw The instruction of word shading;It is determined that the target area of word shading to be drawn;According to the target area The size of size and the shading word for arranging, it is determined that needing the shading text being plotted in the target area The quantity and arrangement mode of word;Based on a determination that the quantity of the shading word, the arrangement mode and The parameter of the shading word for arranging, draws the word shading in the target area.
In the technical scheme, by the target area for determining word shading to be drawn, and according to target The size in region and the size of shading word determine the number of the shading word for needing to be plotted in target area Amount and arrangement mode, with based on a determination that shading word quantity, arrangement mode and setting shading text The parameter of word draws word shading in target area, enabling word is added in the publication in realization The effect of shading, optimizes the design effect of publication, meets the design requirement of designer, favorably In the experience for lifting designer.
In above-mentioned technical proposal, it is preferable that it is determined that needing the shading being plotted in the target area The step of quantity and arrangement mode of word, specifically include:The target area is set to cut road Footpath;Path is cut according to described, the boundary rectangle of the target area is determined;According to the external square The size of the size of shape and the shading word for arranging, it is determined that needing to be plotted in the target area Shading word quantity and arrangement mode.
In the technical scheme, because target area is all not rectangle, it may be possible to circular or other shapes Shape, it is therefore desirable to determine and determine again after the boundary rectangle of target area and need to be plotted in target area Shading word quantity and arrangement mode.
In any of the above-described technical scheme, it is preferable that also include:There is the word shading by drawing Target area generates scalable vector graphicses (i.e. SVG, Scalable Vector Graphics);Will The scalable vector graphicses are used as object embedding HTML (i.e. HTML, Hyper Text Markup Language) in, to obtain electronic publishing file.
In any of the above-described technical scheme, it is preferable that the arrangement mode includes:It is plotted to the mesh The line number and often capable number of the shading word in mark region.
In any of the above-described technical scheme, it is preferable that the parameter of the shading word includes:Shading text Coding information, the color of shading word of the character library information, shading word that word is used in character library.
According to a further aspect in the invention, it is also proposed that a kind of drawing apparatus of word shading, including: Receiving unit, for receiving the instruction for drawing word shading;First determining unit, waits to paint for determining The target area of word shading processed;First processing units, for according to the size of the target area and The size of the shading word of setting, it is determined that needing the number of shading word being plotted in the target area Amount and arrangement mode;Drawing unit, for based on a determination that the shading word quantity, the row The parameter of mode for cloth and the shading word for arranging, draws the word bottom in the target area Stricture of vagina.
In the technical scheme, by the target area for determining word shading to be drawn, and according to target The size in region and the size of shading word determine the number of the shading word for needing to be plotted in target area Amount and arrangement mode, with based on a determination that shading word quantity, arrangement mode and setting shading text The parameter of word draws word shading in target area, enabling word is added in the publication in realization The effect of shading, optimizes the design effect of publication, meets the design requirement of designer, favorably In the experience for lifting designer.
In above-mentioned technical proposal, it is preferable that the first processing units include:Setting unit, uses In the target area is set to cut path;Second determining unit, for cutting road according to described Footpath, determines the boundary rectangle of the target area, and for according to the size of the boundary rectangle and setting The size of the shading word put, it is determined that the shading word for needing to be plotted in the target area Quantity and arrangement mode.
In the technical scheme, because target area is all not rectangle, it may be possible to circular or other shapes Shape, it is therefore desirable to determine and determine again after the boundary rectangle of target area and need to be plotted in target area Shading word quantity and arrangement mode.
In any of the above-described technical scheme, it is preferable that also include:Second processing unit, for painting The target area for being formed with the word shading generates scalable vector graphicses, and for will be described scalable During vector graphics is as object embedding HTML, to obtain electronic publishing file.
In any of the above-described technical scheme, it is preferable that the arrangement mode includes:It is plotted to the mesh The line number and often capable number of the shading word in mark region.
In any of the above-described technical scheme, it is preferable that the parameter of the shading word includes:Shading text Coding information, the color of shading word of the character library information, shading word that word is used in character library.
By above technical scheme, the effect for adding word shading in the publication is realized, optimized The design effect of publication, meets the design requirement of designer, is conducive to lifting the use of designer Experience.
Description of the drawings
Fig. 1 shows the signal stream of the method for drafting of word shading according to an embodiment of the invention Cheng Tu;
Fig. 2 shows the schematic block diagram of the drawing apparatus of word shading according to an embodiment of the invention;
Fig. 3 shows the signal of the method for drafting of word shading according to another embodiment of the invention Flow chart.
Specific embodiment
In order to be more clearly understood that the above objects, features and advantages of the present invention, with reference to attached Figure and specific embodiment are further described in detail to the present invention.It should be noted that not In the case of conflict, the feature in embodiments herein and embodiment can be mutually combined.
Many details are elaborated in the following description in order to fully understand the present invention, but, The present invention can also be different from other modes described here to implement using other, therefore, the present invention Protection domain do not limited by following public specific embodiment.
Fig. 1 shows the signal stream of the method for drafting of word shading according to an embodiment of the invention Cheng Tu.
As shown in figure 1, the method for drafting of word shading according to an embodiment of the invention, bag Include:
Step 102, receives the instruction for drawing word shading;
Step 104, it is determined that the target area of word shading to be drawn;
Step 106, according to the size and the size of the shading word for arranging of the target area, it is determined that Need the quantity of shading word and the arrangement mode being plotted in the target area;
Step 108, based on a determination that the quantity of the shading word, the arrangement mode and setting The parameter of the shading word, draws the word shading in the target area.
In the technical scheme, by the target area for determining word shading to be drawn, and according to target The size in region and the size of shading word determine the number of the shading word for needing to be plotted in target area Amount and arrangement mode, with based on a determination that shading word quantity, arrangement mode and setting shading text The parameter of word draws word shading in target area, enabling word is added in the publication in realization The effect of shading, optimizes the design effect of publication, meets the design requirement of designer, favorably In the experience for lifting designer.
In above-mentioned technical proposal, it is preferable that it is determined that needing the shading being plotted in the target area The step of quantity and arrangement mode of word, specifically include:The target area is set to cut road Footpath;Path is cut according to described, the boundary rectangle of the target area is determined;According to the external square The size of the size of shape and the shading word for arranging, it is determined that needing to be plotted in the target area Shading word quantity and arrangement mode.
In the technical scheme, because target area is all not rectangle, it may be possible to circular or other shapes Shape, it is therefore desirable to determine and determine again after the boundary rectangle of target area and need to be plotted in target area Shading word quantity and arrangement mode.
In any of the above-described technical scheme, it is preferable that also include:There is the word shading by drawing Target area generates scalable vector graphicses (i.e. SVG, Scalable Vector Graphics);Will The scalable vector graphicses are used as object embedding HTML (i.e. HTML, Hyper Text Markup Language) in, to obtain electronic publishing file.
In any of the above-described technical scheme, it is preferable that the arrangement mode includes:It is plotted to the mesh The line number and often capable number of the shading word in mark region.
In any of the above-described technical scheme, it is preferable that the parameter of the shading word includes:Shading text Coding information, the color of shading word of the character library information, shading word that word is used in character library.
Fig. 2 shows the schematic block diagram of the drawing apparatus of word shading according to an embodiment of the invention.
As shown in Fig. 2 drawing apparatus 200 of word shading according to an embodiment of the invention, bag Include:Receiving unit 202, the first determining unit 204, first processing units 206 and drawing unit 208。
Wherein, receiving unit 202, for receiving the instruction for drawing word shading;First determining unit 204, for determining the target area of word shading to be drawn;First processing units 206, for root According to the size and the size of the shading word for arranging of the target area, it is determined that needing to be plotted to the mesh The quantity and arrangement mode of the shading word in mark region;Drawing unit 208, for based on a determination that The parameter of the shading word of the quantity, the arrangement mode and setting of the shading word, in institute State and draw in target area the word shading.
In the technical scheme, by the target area for determining word shading to be drawn, and according to target The size in region and the size of shading word determine the number of the shading word for needing to be plotted in target area Amount and arrangement mode, with based on a determination that shading word quantity, arrangement mode and setting shading text The parameter of word draws word shading in target area, enabling word is added in the publication in realization The effect of shading, optimizes the design effect of publication, meets the design requirement of designer, favorably In the experience for lifting designer.
In above-mentioned technical proposal, it is preferable that the first processing units 206 include:Setting unit 2062, for the target area to be set to cut path;Second determining unit 2064, is used for Path is cut according to described, the boundary rectangle of the target area is determined, and for according to described external The size of the size of rectangle and the shading word for arranging, it is determined that needing to be plotted to the target area The quantity and arrangement mode of interior shading word.
In the technical scheme, because target area is all not rectangle, it may be possible to circular or other shapes Shape, it is therefore desirable to determine and determine again after the boundary rectangle of target area and need to be plotted in target area Shading word quantity and arrangement mode.
In any of the above-described technical scheme, it is preferable that also include:Second processing unit 210, is used for Will draw have the word shading target area generate scalable vector graphicses, and for by it is described can During scaled vectors figure is as object embedding HTML, to obtain electronic publishing file.
In any of the above-described technical scheme, it is preferable that the arrangement mode includes:It is plotted to the mesh The line number and often capable number of the shading word in mark region.
In any of the above-described technical scheme, it is preferable that the parameter of the shading word includes:Shading text Coding information, the color of shading word of the character library information, shading word that word is used in character library.
Fig. 3 shows the signal of the method for drafting of word shading according to another embodiment of the invention Flow chart.
As shown in figure 3, the method for drafting of word shading according to another embodiment of the invention, bag Include:
Step 302, designs and makes font, such as designs and make a with shading with tools The word of effect.
Step 304, uses the font as shading in software for composing., wherein it is desired to note text The parameter information of word shading, including:
Font name:The character library title that the shading is used;
Font size:The size of the shading;
Character code:Coding of the shading in character library;
Shade color:The color for using.
Step 306, target area generates SVG file.Specifically, word shading is placed Target area be set to cut path, according to the big of the boundary rectangle of target area and burelage It is little, the word for needing to write several row of several rows is calculated, then word is written in SVG file.
Step 308, using SVG file as in the embedded HTML of object (object), is carried out EPUB (Electronic Publication, electronic publishing).
The above-mentioned technical proposal of the present invention causes that the process of shading is reduced to the process of word, it is ensured that set Meter person easily increases a kind of word shading.
Technical scheme is described in detail above in association with accompanying drawing, it is contemplated that not related at present Technical scheme can provide designer add word shading function.Therefore, the present invention proposes one The drafting scheme of new word shading is planted, the effect for adding word shading in the publication is realized, it is excellent The design effect of publication is changed, has met the design requirement of designer, be conducive to lifting designer's Experience.
The preferred embodiments of the present invention are the foregoing is only, the present invention is not limited to, for For those skilled in the art, the present invention can have various modifications and variations.All essences in the present invention Within god and principle, any modification, equivalent substitution and improvements made etc. should be included in the present invention Protection domain within.

Claims (10)

1. a kind of method for drafting of word shading, it is characterised in that include:
Receive the instruction for drawing word shading;
It is determined that the target area of word shading to be drawn;
According to the size and the size of the shading word for arranging of the target area, it is determined that needing to be plotted to The quantity and arrangement mode of the shading word in the target area;
Based on a determination that the shading word quantity, the arrangement mode and setting the shading text The parameter of word, draws the word shading in the target area.
2. the method for drafting of word shading according to claim 1, it is characterised in that it is determined that The step of needing the quantity of shading word and the arrangement mode that are plotted in the target area, concrete bag Include:
The target area is set to cut path;
Path is cut according to described, the boundary rectangle of the target area is determined;
According to the size and the size of the shading word for arranging of the boundary rectangle, it is determined that needing to paint Make the quantity and arrangement mode of shading word in the target area.
3. the method for drafting of word shading according to claim 1, it is characterised in that also wrap Include:
The target area generation scalable vector graphicses for having the word shading will be drawn;
Using the scalable vector graphicses as in object embedding HTML, to obtain electronics Publications.
4. the method for drafting of word shading according to any one of claim 1 to 3, it is special Levy and be, the arrangement mode includes:The line number of the shading word being plotted in the target area and The number often gone.
5. the method for drafting of word shading according to any one of claim 1 to 3, it is special Levy and be, the parameter of the shading word includes:Character library information, shading text that shading word is used Coding information, the color of shading word of the word in character library.
6. a kind of drawing apparatus of word shading, it is characterised in that include:
Receiving unit, for receiving the instruction for drawing word shading;
First determining unit, for determining the target area of word shading to be drawn;
First processing units, for big with the shading word for arranging according to the size of the target area It is little, it is determined that needing the quantity of shading word and the arrangement mode being plotted in the target area;
Drawing unit, for based on a determination that the quantity of the shading word, the arrangement mode and set The parameter of the shading word put, draws the word shading in the target area.
7. drawing apparatus of word shading according to claim 6, it is characterised in that described First processing units include:
Setting unit, for the target area to be set to cut path;
Second determining unit, for cutting path according to described, determines the external square of the target area Shape, and for according to the size of the boundary rectangle and arrange the shading word size, it is determined that Need the quantity of shading word and the arrangement mode being plotted in the target area.
8. drawing apparatus of word shading according to claim 6, it is characterised in that also wrap Include:
Second processing unit, for will draw the target area for having the word shading scalable arrow is generated Spirogram shape, and for using the scalable vector graphicses as in object embedding HTML, To obtain electronic publishing file.
9. drawing apparatus of the word shading according to any one of claim 6 to 8, it is special Levy and be, the arrangement mode includes:The line number of the shading word being plotted in the target area and The number often gone.
10. drawing apparatus of the word shading according to any one of claim 6 to 8, it is special Levy and be, the parameter of the shading word includes:Character library information, shading text that shading word is used Coding information, the color of shading word of the word in character library.
CN201510703031.8A 2015-10-26 2015-10-26 Drawing method and drawing device of text shading Pending CN106611434A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510703031.8A CN106611434A (en) 2015-10-26 2015-10-26 Drawing method and drawing device of text shading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510703031.8A CN106611434A (en) 2015-10-26 2015-10-26 Drawing method and drawing device of text shading

Publications (1)

Publication Number Publication Date
CN106611434A true CN106611434A (en) 2017-05-03

Family

ID=58613766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510703031.8A Pending CN106611434A (en) 2015-10-26 2015-10-26 Drawing method and drawing device of text shading

Country Status (1)

Country Link
CN (1) CN106611434A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004302303A (en) * 2003-03-31 2004-10-28 Zenrin Co Ltd Device, method and program for embedding electronic watermark
CN1790190A (en) * 2005-12-01 2006-06-21 北京北大方正电子有限公司 Printer capable of preventing document from copy
CN1912864A (en) * 2006-08-04 2007-02-14 北京北大方正电子有限公司 Method of embedding dark lines in sheet
CN101000601A (en) * 2007-01-10 2007-07-18 北京方正国际软件系统有限公司 Device and method for automatic changing type face in type-setting process

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004302303A (en) * 2003-03-31 2004-10-28 Zenrin Co Ltd Device, method and program for embedding electronic watermark
CN1790190A (en) * 2005-12-01 2006-06-21 北京北大方正电子有限公司 Printer capable of preventing document from copy
CN1912864A (en) * 2006-08-04 2007-02-14 北京北大方正电子有限公司 Method of embedding dark lines in sheet
CN101000601A (en) * 2007-01-10 2007-07-18 北京方正国际软件系统有限公司 Device and method for automatic changing type face in type-setting process

Similar Documents

Publication Publication Date Title
CN106294664B (en) A kind of method and apparatus for generating mind map
US9041742B2 (en) Displaying an image based on layers of a layer tree
CN106168978A (en) The treating method and apparatus of pop-up in a kind of webpage
JP4356752B2 (en) Document editing apparatus, program, and storage medium
US20150287227A1 (en) Dynamic filling of shapes for graphical display of data
CN107480121A (en) The preparation method of format data flow table list
JP2008035475A (en) Document editing support device, program, and storage medium
CN111258575B (en) Page layout processing method and device
JP2011113344A (en) Program generation device and program
CN102447689B (en) Information updating prompt method and network client side
US9881395B2 (en) Rendering multi-part glyphs
US20150325022A1 (en) Technique for processing a character string for graphical representation on a man/machine interface
CN109242929B (en) Conversion method, device, storage medium and equipment of path coordinate graph
CN106611434A (en) Drawing method and drawing device of text shading
JP2008204179A (en) Document evaluation device, program and storage medium
CN103150742A (en) Method and device for vector graphic dynamic rendering
CN108182269A (en) The annotation symbolism method that a kind of selectivity background knocks out
JP2008197835A (en) Document editing apparatus, program and storage medium
US11030388B2 (en) Live text glyph modifications
CN104750398B (en) Based on the graphical interaction system of hydrology drawing and the processing method of hydrographic data
KR100856775B1 (en) System for providing user specific handwriting style based on handwriting data
WO1998036630A2 (en) Parametric font models based on features and constraints
CN109478200B (en) Device and method for generating fonts through meta-fonts by utilizing outline fonts
JP2013097766A (en) Graph display device and program
CN111428439B (en) Method for generating three-dimensional character model based on contour tree structure and applicable to mobile terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170503