CN104766353B - The method and device of word content is added in background - Google Patents
The method and device of word content is added in background Download PDFInfo
- Publication number
- CN104766353B CN104766353B CN201510199684.7A CN201510199684A CN104766353B CN 104766353 B CN104766353 B CN 104766353B CN 201510199684 A CN201510199684 A CN 201510199684A CN 104766353 B CN104766353 B CN 104766353B
- Authority
- CN
- China
- Prior art keywords
- character
- text box
- word
- background
- typesetting
- 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.)
- Active
Links
Landscapes
- Document Processing Apparatus (AREA)
Abstract
The invention discloses the method and device that word content is added in a kind of background, this method includes:Obtaining needs the word content of addition in the background and background of word content to be added, word content is the character string of text formatting;Established and background size the first figure layer of identical in background;Text box is created according to character string;Fill character and go here and there to text box;Text box is loaded and including in the first figure layer, solving the existing word content that added into background needs to make word content template picture, cause the technical problem that can not realize that word content is flexibly replaced, the word content that realizing only needs to adjust text formatting is just adapted dynamically the word content added into background.
Description
Technical field
The present invention relates to background editor field, and in particular to the method and device of word content is added in a kind of background.
Background technology
At present, the application to background editor is more and more extensive, particularly to adding word content in picture or video background
Application, such as microblogging camera in photograph taking and software for editing can realize and text is added into the photo or video after shooting
The function of word content, and word content can be shown according to portrait.In this photo or video to after shooting
Addition word content process be mainly:A series of word content mould is first established in photograph taking and software for editing database
Plate picture, the word content template picture for then selecting user is pasted on photo or video after the picture is taken, so as to realize to photograph
Word content is added in piece or video.
Using this by making word content template picture, the word content template picture of making is then attached to bat again
Take the photograph on rear photo or video and realize that the method for adding word content into background has problems with.First, it is necessary to make word
Content template picture, cause the flexible replacement that can not realize word content, i.e., it is different when needing to add into photo or video
Different literals content template picture need to be replaced during word content, causes word content template picture to make workload big;Second, will
Word content template picture be attached to shooting after photo or video on be likely to occur word content template picture with shooting photo or
Video is bonded unmatched problem, so as to cause edit effect bad.Word content mould need not be made so needing badly and providing one kind
Plate picture realizes the method and device that word content is added into background.
The content of the invention
The invention provides the method and device that word content is added in a kind of background, to solve existing to add into background
Word content needs to make word content template picture, causes the technical problem that can not realize that word content is flexibly replaced.
According to an aspect of the present invention, there is provided a kind of method that word content is added in image background, including:
Obtaining needs the word content of addition in the background and background of word content to be added, word content is text formatting
Character string;
Established and background size the first figure layer of identical in background;
Text box is created according to character string;
Fill character and go here and there to text box;
Text box is loaded and including in the first figure layer.
Further, creating text box according to character string includes:
Character string is split according to default number of characters threshold value and default symbol, obtains multiple character fields;
After the number for judging character field is less than default character field threshold value, each character field is created corresponding
Text box.
Further, creating corresponding text box to each character field includes:
It is determined that number of characters corresponding to the most character field of number of characters is max number of characters after splitting;
Word after typesetting is determined according to the high information of word of character after the height of the first figure layer, max number of characters, default typesetting
The word line spacing information of symbol;
According to the high information of word of character after the word line spacing information of character, the number of characters of character field, default typesetting after typesetting
It is determined that the elevation information of text box corresponding with character field;
According to the wide information creating text box of word of character after elevation information and default typesetting, and the width of text box is set
It and can only accommodate a character;
The text display mode of text box is arranged to automatic line feed pattern.
Further, creating corresponding text box to each character field includes:
The elevation information of default text box corresponding with character field is obtained, default text box corresponding with character field
Highly it is less than the height of the first figure layer, and the height of text box corresponding to each character field is identical;
According to the wide information creating text box of word of character after elevation information and default typesetting, and the width of text box is set
It and can only accommodate a character;
The text display mode of text box is arranged to automatic line feed pattern.
Further, string to text box of filling character includes:
Each character field is filled to corresponding text box;
According to character after the high information of word of character, the wide information of word, font information and typesetting after default typesetting
Word line spacing information carries out typesetting to each character field.
Further, text box is loaded and including including in the first figure layer:
Each text box is added in the first figure layer and shown using iteration or endless form;
After typesetting being determined according to the wide information of word of character after the width of the first figure layer, the number of character field, default typesetting
The frame pitch information of text box;
Typesetting is carried out to the text box being added in the first figure layer according to frame pitch information.
Further, word content is poem content, and poem content includes title, author's title, verse content, authors' name
The registration ID number, the registration pet name, any combination of self-defined title of the software client of poem content are added referred to as into background.
According to another aspect of the present invention, there is provided the device of word content is added in a kind of image background, including:Obtain
Device, the first figure layer creating device, text box creating device, filling device and loaded and displayed device;Wherein,
Acquisition device, the word content of addition, word are needed in the background and background for obtaining word content to be added
Content is the character string of text formatting;
First figure layer creating device, for being established and background size the first figure layer of identical in background;
Text box creating device, for creating text box according to character string;
Filling device, gone here and there for filling character to text box;
Loaded and displayed device, for text box to be loaded and including in the first figure layer.
Further, text box creating device includes:
Character string detachment device, for being split according to default number of characters threshold value and default symbol to character string,
Obtain multiple character fields;
Character field text box creating device, after being less than default character field threshold value in the number for judging character field, then
Corresponding text box is created to each character field.
Further, character field text box creating device includes:
Max number of characters determining device device, number of characters corresponding to the most character field of number of characters is after being split for determination
Max number of characters;
Word line spacing information determining device, for character after the height according to the first figure layer, max number of characters, default typesetting
The high information of word determine the word line spacing information of character after typesetting;
Height determining device, for according to the word line spacing information of character, the number of characters of character field, default typesetting after typesetting
The high information of the word of character determines the elevation information of text box corresponding with character field afterwards;
Width sets device, for the wide information creating text box of word according to character after elevation information and default typesetting,
And the width energy of text box is set and a character can only be accommodated;
Automatic line feed pattern sets device, for the text display mode of text box to be arranged into automatic line feed pattern.
The invention has the advantages that:
The invention provides the method and device that word content is added in a kind of background, by obtaining word content to be added
Background and background in need addition word content, word content be text formatting character string;Establish and carry on the back in background
Scape size the first figure layer of identical;Text box is created according to character string;Fill character and go here and there to text box;Text box is loaded and shown
Show in the first figure layer, solving the existing word content that added into background needs to make word content template picture, causes not
The technical problem that word content is flexibly replaced can be realized, the word content that realizing only needs to adjust text formatting is adjusted with regard to dynamic
The whole word content added into background.
In addition to objects, features and advantages described above, the present invention also has other objects, features and advantages.
Below with reference to figure, the present invention is further detailed explanation.
Brief description of the drawings
The accompanying drawing for forming the part of the application is used for providing a further understanding of the present invention, schematic reality of the invention
Apply example and its illustrate to be used to explain the present invention, do not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the method flow diagram that word content is added into background of the preferred embodiment of the present invention;
Fig. 2 is the design sketch after the poem content that vertical setting of types typesetting is added into background of the preferred embodiment of the present invention;
Fig. 3 is the schematic device that word content is added into background of the preferred embodiment of the present invention.
Description of reference numerals:
10th, acquisition device;20th, the first figure layer creating device;30th, text box creating device;40th, filling device;50th, load
Display device.
Embodiment
Embodiments of the invention are described in detail below in conjunction with accompanying drawing, but the present invention can be defined by the claims
Implement with the multitude of different ways of covering.
Reference picture 1, the preferred embodiments of the present invention provide a kind of method that word content is added in background, including:
Step S101, obtain the word content that addition is needed in the background and background of word content to be added, word content
For the character string of text formatting;
Step S103, established and background size the first figure layer of identical in background;
Step S105, text box is created according to character string;
Step S107, fill character and go here and there to text box;
Step S109, text box is loaded and including in the first figure layer.
The method that word content is added in the background of the present invention, by the background and background that obtain word content to be added
The middle word content that need to be added, word content are the character string of text formatting;Established in background and background size identical the
One figure layer;Text box is created according to character string;Fill character and go here and there to text box;Text box is loaded and including in the first figure layer
On, solving the existing word content that added into background needs to make word content template picture, causes to realize in word
Hold the technical problem flexibly replaced, the word content that realizing only needs to adjust text formatting is just adapted dynamically to be added into background
The word content added.
Alternatively, step S105, creating text box according to character string includes:
Character string is split according to default number of characters threshold value and default symbol, obtains multiple character fields;
After the number for judging character field is less than default character field threshold value, each character field is created corresponding
Text box.
Due to adding word content into background by making word content template picture, add primarily directed into background
The word content added needs the situation that vertical setting of types is shown, therefore then the present embodiment will be split by first being split to word content
Each character field afterwards carries out vertical setting of types typesetting and shown to realize that the vertical setting of types typesetting of word content is shown.Default symbol in the present embodiment
Number can be comma, branch, newline etc..The present embodiment is according to default number of characters threshold value and default symbol to character string
The specific implementation process split is:Character string is first split into by multiple character fields according to default symbol, then judged every
Whether the number of characters in one character field exceedes default number of characters threshold value, by the character field according to number of characters threshold value if exceeding
Split again.
In addition, the present embodiment obtains multiple character fields number after being split to character string judges, only when judgement word
The number of section is accorded with less than after default character field threshold value, corresponding text box is just created to each character field.This is main
It is due to that the height and width of the first figure layer also just secure after background determines, i.e., the appearance of word content is added into background
Amount can not possibly be infinitely great;Enter edlin rather than presentation Large Copacity to background in addition, adding word content into background and essentially consisting in
Word particular content, therefore in view of word content addition after aesthetic property, when word content vertical setting of types typesetting can be tentatively set
Allow the vertical setting of types number of display, i.e., default character field threshold value, the character field number after word content of input is split surpasses
After crossing default character field threshold value, then select not adding the word content to background.The default number of characters threshold value of the present embodiment is used
Each vertical setting of types allows the number of characters of display when word content vertical setting of types typesetting is controlled, and default character field threshold value is used to control text
Allow the vertical setting of types number of display during word content vertical setting of types typesetting.Split using to character string, and create each character simultaneously
Text box corresponding to section, the characteristics of computer concurrent operation can be made full use of, so as to improve to background addition word content
Speed and efficiency;Meanwhile brief character field can be obtained by being split to character string, so as to facilitate the perpendicular of word content
Arrange typesetting.
Alternatively, creating corresponding text box to each character field includes:It is determined that number of characters is most after splitting
Number of characters corresponding to character field is max number of characters;According to character after the height of the first figure layer, max number of characters, default typesetting
The high information of word determine the word line spacing information of character after typesetting;According to the character of the word line spacing information of character, character field after typesetting
The high information of the word of character determines the elevation information of text box corresponding with character field after several, default typesetting;According to elevation information
With the wide information creating text box of word of character after default typesetting, and set text box width energy and a word can only be accommodated
Symbol;The text display mode of text box is arranged to automatic line feed pattern.
The word line-spacing of character after the typesetting of the present embodimentIt can be determined by following formula:
Wherein,For the height of the first figure layer,For the width of the first figure layer,For max number of characters,It is default
Typesetting after character word it is high.
The word line-spacing of character after typesetting is determined according to above formulaAfterwards, it is possible to calculate the height of text box, text box
HighlyIt is determined by following formula:
Wherein,For the number of characters of character field,It is high for the word of character after default typesetting,For word after the typesetting of selection
The word line-spacing of symbol.The wide information can of the word of character creates after the elevation information calculated according to said process and default typesetting
Text box, and the width energy of text box is set and a character can only be accommodated.
Alternatively, creating corresponding text box to each character field includes:Obtain default corresponding with character field
Text box elevation information, the height of default text box corresponding with character field is less than the height of the first figure layer, and each
The height of text box is identical corresponding to individual character field;According to the wide information creating text of the word of character after elevation information and default typesetting
This frame, and the width energy of text box is set and a character can only be accommodated;The text display mode of text box is arranged to automatic
Line feed pattern.
In view of cumbersome to calculate the elevation information process of text box using the word line-spacing by calculating character after typesetting, this
Embodiment is by presetting the height of text box(The height of text box set in advance is less than the first figure layer height), and be based on
The default TextField._height information calculates the extended formatting information after typesetting, such as the word height of character, reduces text box
Height calculating process, and by the way that the height of text box corresponding to each character field is arranged into identical, so as to improve text
Frame creates efficiency.
The present embodiment text box wide equal to the word of character after default typesetting by creating width, and by the text of text box
The method that this display pattern is arranged to automatic line feed pattern, it is possible to achieve the effect of word vertical setting of types, implementation process are simple and easy.
Alternatively, string to text box of filling character includes:Each character field is filled to corresponding text box;According to
After default typesetting after the high information of the word of character, the wide information of word, font information and typesetting the word line spacing information of character to each
Individual character field carries out typesetting.
The present embodiment is by first filling each character field to corresponding text box, further according to word after default typesetting
The word line spacing information of character is arranged each character field after the high information of word of symbol, the wide information of word, font information and typesetting
Version, flexible typesetting is carried out to the character in character field so as to realize.
Alternatively, text box is loaded and including including in the first figure layer:Each text box using iteration or is followed
Ring mode is added in the first figure layer and shown;According to character after the width of the first figure layer, the number of character field, default typesetting
The wide information of word determine the frame pitch information of text box after typesetting;According to frame pitch information to the text that is added in the first figure layer
Frame carries out typesetting.
The frame pitch information of text box can be determined by following formula after the present embodiment typesetting:
Wherein,For the frame spacing of text box after typesetting,Word for character after default typesetting is wide,For character field
Number.
The present embodiment is split in step S105 by default number of characters threshold value and default symbol to character string
When obtaining multiple character fields, in addition to logical number is carried out to the character field after fractionation.Therefore, created when to each character field
Good text box and by after character field fills to text box, it is only necessary to according to the numbering of character field in text box using iteration or
Endless form is added in the first figure layer, then again to the text box that is added in the first figure layer according to the typesetting calculated hereinafter
The frame pitch information of this frame carries out typesetting, can be achieved with adding the word content of vertical setting of types typesetting into background, solves existing skill
Word content template picture is attached on the picture or video after shooting in art and is likely to occur word content template picture and shooting
Picture or video be bonded unmatched problem, so as to cause the bad technical problem of edit effect, realize and added to background
Word content and background in itself good fit.
Alternatively, word content is poem content, and poem content includes title, author's title, verse content, author's title
To add the registration ID number of the software client of poem content, the registration pet name, any combination of self-defined title into background.By
Typically it is made up of in poem content brief verse, therefore the word content with poetry art style is added to the back of the body during background editor
The favor of the edit mode depth audient multi-user of scape.Author's title of poem content can be by detecting into background in the present embodiment
Add poem content software client registration ID number, register the pet name, any combination of self-defined title and obtain automatically, from
And realize the author's title for being not only adapted dynamically poem content, moreover it is possible to strengthen Consumer's Experience, improve edit effect.
The process of the method for addition word content and principle in the background of the embodiment of the present invention are carried out below further
Explanation.
Step S101, obtain the word content that addition is needed in the background and background of word content to be added, word content
For the character string of text formatting;The background of the present embodiment is picture, and word content is poem content, including title, author's title
With verse content, be specially "@in front of the door/Gu Cheng, grass shaking its % kind, wind is shaking its leaf, and we stand, and do not say %, with regard to % ten
Divide fine ", wherein, "@" symbol is the title prompt of poem content, and "/" symbol is the title and poem content of poem content
Author's title separator, " % " symbol is space display symbol, and author's title of poem content(Gu Cheng)Obtained automatically for system
What is taken adds the registration ID number, the registration pet name, any combination of self-defined title of the software client of poem content into background.
The present embodiment can also it is self-defined and set symbol representative implication, as long as the content of text and form of poem content meet definition
Rule, it can be achieved with being added into background.
Step S103, established and background size the first figure layer of identical in background;The height for the background that the present embodiment is chosen
Spend for 6, width 10, therefore the height of the first figure layer, width。
Step S105, text box is created according to character string, the present embodiment creates text box according to character string to be included:
Character string is split according to default number of characters threshold value and default symbol, obtains multiple character fields:This reality
Apply the default number of characters threshold value of example, point of the default symbol of the present embodiment including title prompt, title and author's title
Every symbol, comma, therefore seven character fields are obtained after splitting according to default symbol to character string is respectively:Title:In front of the door;Make
Person:Gu Cheng;First verse:Grass is shaking its % kind;Second verse:Wind is shaking its leaf;3rd verse:We stand;4th poem
Sentence:Do not say %;5th verse:It is very fine with regard to %.In addition, the present embodiment carries out logical number to the character field of fractionation, so as to
Facilitate follow-up typesetting and display.
After the number for judging character field is less than default character field threshold value, each character field is created corresponding
Text box:Due to the default character field threshold value of the present embodiment, therefore the result after judging that character string is split meets condition
When, corresponding text box is created to each character field.The present embodiment is with to the first verse content character field(Grass is shaking
Its % kind)Create and illustrate exemplified by corresponding text box:
Number of characters corresponding to the most character field of number of characters is max number of characters first after determination fractionation, and the present embodiment is most
Big number of characters, row is determined further according to the high information of word of character after the height of the first figure layer, max number of characters, default typesetting
The word line spacing information of character after version, the word of character is high after the default first verse typesetting of the present embodiment=0.5;According toIt can obtain, the present embodiment chooses within this range, by asking for max number of characters meter
The word line-spacing scope of character, can meet the typesetting requirement of the most text box of number of characters, so as to realize after calculation typesetting
There is the word line-spacing of character after typesetting in text box equal, avoid and the word line-spacing of character after typesetting in each text box is counted
Calculate, and typesetting effect is more neat and attractive in appearance.
According to the word line spacing information of character, the number of characters of the first verse character field, default first after the first verse typesetting
The high information of the word of character determines the elevation information of text box corresponding with the first verse character field, the present embodiment root after verse typesetting
According toThe height of text box corresponding to the first verse can be determined i.e., whereinFor the first verse
Number of characters in character field.
Then further according to character after the elevation information of text box corresponding to the first verse and default first verse typesetting
The wide information creating text box of word, and the width energy of text box is set and a character can only be accommodated, the verse of the present embodiment first row
The word of character is wide after version;The text display mode of text box is finally arranged to automatic line feed pattern.Need what is illustrated
It is that in specific implementation process, the word height of character can be with identical after each default typesetting of character field, can also be different, for example,
Default character in character field where the word height of default character in character field where general title can be slightly larger than verse
Word it is high.
Step S107, fill character and go here and there to text box;Because in step S105, character string is split into multiple character fields,
And each character field has created corresponding text box, therefore only need the fills of each character field to corresponding text
In this frame, further according to the word row of character after the high information of word of character, the wide information of word, font information and typesetting after default typesetting
Typesetting is carried out to each character field away from information.The default composition information of the present embodiment is not limited to only including the word of character after typesetting
The wide information of high information, word, font information, such as colouring information or other attribute informations of character etc. can also be included.
Step S109, text box is loaded and including in the first figure layer.The present embodiment is by create seven text boxes
Loading and being shown in the first figure layer includes:
Each text box is added in the first figure layer using iteration or endless form first, due to being adopted in step S105
When being split to obtain multiple character fields to character string with default symbol, in addition to logic volume is carried out to the character field after fractionation
Number.Therefore, after text box being created to each character field and by character field fills to text box, it is only necessary to according to text
Text box is added in the first figure layer and shown using iteration or endless form by the numbering of character field in this frame;
Then the frame of text box after typesetting is determined according to the width of the width of the first figure layer, the number of character field, text box
Pitch information, the present embodiment according to, can obtain, wherein,After default typesetting
The word of character is wide,For the number of character field, the present embodiment takes, take。
Typesetting finally is carried out to the text box being added in the first figure layer further according to frame pitch information.In actual mechanical process
In, it is general to set the first figure layer to be sized to be slightly smaller than background size, so as to allow the text box after typesetting to be left from initial photo border
Certain interval.
In order to preferably distinguish the verse content of author's title of poem content and poem content, the present embodiment is at the rwo
Between be also provided with a specific separator and shown, specific practice is also to create one after seven text boxes are created to include
The text box of the specific separator, and load and be shown in the first figure layer simultaneously with seven text boxes, it specifically can refer to Fig. 2.
Fig. 2 is that the present embodiment adds the design sketch after the poem content of vertical setting of types typesetting into background, when needs are replaced or are changed in poem
Rong Shi, the present embodiment is without by making poem content template picture, it is only necessary to changes the content of text of poem context string
, flexibility is larger, changes convenient and swift and easy realization.
Reference picture 3, according to another aspect of the present invention, there is provided the device of word content is added in a kind of background, including:
Acquisition device 10, the first figure layer creating device 20, text box creating device 30, filling device 40 and loaded and displayed device 50;
Wherein,
Acquisition device 10, the word content of addition, text are needed in the background and background for obtaining word content to be added
Word content is the character string of text formatting;
First figure layer creating device 20, for being established and background size the first figure layer of identical in background;
Text box creating device 30, for creating text box according to character string;
Filling device 40, gone here and there for filling character to text box;
Loaded and displayed device 50, for text box to be loaded and including in the first figure layer.
Alternatively, text box creating device 30 includes:
Character string detachment device, for being split according to default number of characters threshold value and default symbol to character string,
Obtain multiple character fields;
Character field text box creating device, after being less than default character field threshold value in the number for judging character field, then
Corresponding text box is created to each character field.
Alternatively, character field text box creating device includes:
Max number of characters determining device device, for determining character corresponding to the character field of number of characters at most after splitting
Number is max number of characters;
Word line spacing information determining device, for the height according to first figure layer, the max number of characters, default row
The high information of word of character determines the word line spacing information of character after typesetting after version;
Height determining device, for according to the word line spacing information of character, the number of characters of character field, default typesetting after typesetting
The high information of the word of character determines the elevation information of text box corresponding with character field afterwards;
Width sets device, for the wide information creating text box of word according to character after elevation information and default typesetting,
And the width energy of text box is set and a character can only be accommodated;
Automatic line feed pattern sets device, for the text display mode of text box to be arranged into automatic line feed pattern.
The specific work process and operation principle that the device of word content is added in the background of the present embodiment can refer to this reality
Apply the course of work and operation principle for the method that word content is added in the background in example.The technical scheme that above example provides
In all or part of content can realize that its software program is stored in the storage medium that can be read, and is deposited by software programming
Storage media is for example:Hard disk, CD or floppy disk in computer.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (8)
1. the method for word content is added in a kind of background, it is characterised in that including:
Obtain word content to be added background and the background in need addition word content, the word content is text
The character string of form;
Established and the first figure layer of the background size identical in the background;
The character string is split according to default number of characters threshold value and default symbol, obtains multiple character fields;
After the number for judging the character field is less than default character field threshold value, it is right with it that character field each described is created
The text box answered;
The character string is filled to the text box;
The text box is loaded and including in first figure layer.
2. the method for word content is added in background according to claim 1, it is characterised in that to character each described
Section, which creates corresponding text box, to be included:
It is determined that number of characters corresponding to the most character field of number of characters is max number of characters after splitting;
Typesetting is determined according to the high information of word of character after the height, the max number of characters, default typesetting of first figure layer
The word line spacing information of character afterwards;
According to character after the word line spacing information of character, the number of characters of the character field, the default typesetting after the typesetting
The high information of word determines the elevation information of text box corresponding with the character field;
According to the wide information creating text box of word of character after the elevation information and the default typesetting, and the text is set
The width energy of frame and a character can only be accommodated;
The text display mode of the text box is arranged to automatic line feed pattern.
3. the method for word content is added in background according to claim 1, it is characterised in that to character each described
Section, which creates corresponding text box, to be included:
The elevation information of default text box corresponding with the character field is obtained, it is described default corresponding with the character field
The height of text box is less than the height of first figure layer, and the height of text box corresponding to each described character field is identical;
According to the wide information creating text box of word of character after the elevation information and the default typesetting, and the text is set
The width energy of frame and a character can only be accommodated;
The text display mode of the text box is arranged to automatic line feed pattern.
4. the method for word content is added in background according to claim 2, it is characterised in that fill the character string extremely
The text box includes:
Each described character field is filled to corresponding text box;
According to the word row of character after the high information of word of character, the wide information of word, font information and the typesetting after default typesetting
Typesetting is carried out to character field each described away from information.
5. the method for word content is added in background according to claim 4, it is characterised in that load the text box
And it is shown in first figure layer and includes:
Each described text box is added in first figure layer and shown using iteration or endless form;
It is true according to the wide information of word of character after the width of first figure layer, the number of the character field, the default typesetting
Determine the frame pitch information of text box after typesetting;
Typesetting is carried out to the text box being added in first figure layer according to the frame pitch information.
6. the method for word content is added in background according to claim 5, it is characterised in that
The word content is poem content, and the poem content includes title, author's title, verse content, the authors' name
Referred to as added into background the software client of the poem content registration ID number, registration the pet name, self-defined title it is any
Combination.
7. the device of word content is added in a kind of background, it is characterised in that including:Acquisition device(10), the first figure layer create
Device(20), text box creating device(30), filling device(40)And loaded and displayed device(50);Wherein,
The acquisition device(10), for obtain word content to be added background and the background in need addition word in
Hold, the word content is the character string of text formatting;
The first figure layer creating device(20), for being established and the first figure of the background size identical in the background
Layer;
The text box creating device(30), including:
a)Character string detachment device, for being torn open according to default number of characters threshold value and default symbol to the character string
Point, obtain multiple character fields;
b)Character field text box creating device, after being less than default character field threshold value in the number for judging the character field,
Corresponding text box is then created to character field each described;
The filling device(40), for filling the character string to the text box;
The loaded and displayed device(50), for the text box to be loaded and including in first figure layer.
8. the device of word content is added in background according to claim 7, it is characterised in that the character field text box
Creating device includes:
Max number of characters determining device device, for determining that number of characters corresponding to the character field of number of characters at most is after splitting
Max number of characters;
Word line spacing information determining device, after the height according to first figure layer, the max number of characters, default typesetting
The high information of word of character determines the word line spacing information of character after typesetting;
Height determining device, for the number of characters, described pre- according to the word line spacing information of character after the typesetting, the character field
If typesetting after the high information of word of character determine the elevation information of text box corresponding with the character field;
Width sets device, for the wide information creating text of word according to character after the elevation information and the default typesetting
Frame, and the width energy of the text box is set and a character can only be accommodated;
Automatic line feed pattern sets device, for the text display mode of the text box to be arranged into automatic line feed pattern.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510199684.7A CN104766353B (en) | 2015-04-25 | 2015-04-25 | The method and device of word content is added in background |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510199684.7A CN104766353B (en) | 2015-04-25 | 2015-04-25 | The method and device of word content is added in background |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104766353A CN104766353A (en) | 2015-07-08 |
CN104766353B true CN104766353B (en) | 2018-03-30 |
Family
ID=53648158
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510199684.7A Active CN104766353B (en) | 2015-04-25 | 2015-04-25 | The method and device of word content is added in background |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104766353B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104994312A (en) * | 2015-07-15 | 2015-10-21 | 北京金山安全软件有限公司 | Video generation method and device |
CN105825535B (en) * | 2016-03-18 | 2018-06-05 | 广东欧珀移动通信有限公司 | A kind of figure layer merging method and system |
CN106297459A (en) * | 2016-09-20 | 2017-01-04 | 广东小天才科技有限公司 | A kind of man-machine interaction method based on the content of courses and device, subscriber equipment |
CN108805958A (en) * | 2018-03-28 | 2018-11-13 | 阿里巴巴集团控股有限公司 | A kind of image processing method and device |
CN109145266B (en) * | 2018-07-25 | 2022-03-25 | 珠海市圈宝网络科技有限公司 | Method for quickly generating dynamic PDF (Portable document Format) file from picture |
CN111274765A (en) * | 2019-06-01 | 2020-06-12 | 向英 | Text processing method, software and equipment |
CN113497899A (en) * | 2021-06-22 | 2021-10-12 | 深圳市大头兄弟科技有限公司 | Character and picture matching method, device and equipment and storage medium |
CN113438543B (en) * | 2021-06-22 | 2023-02-03 | 深圳市大头兄弟科技有限公司 | Matching method, device and equipment for converting document into video and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001059576A1 (en) * | 2000-02-12 | 2001-08-16 | Adobe Systems Incorporated | Text grid creation tools |
CN101196875A (en) * | 2007-12-29 | 2008-06-11 | 北京方正国际软件系统有限公司 | Typesetting method for implementing multiple alignment in word rows |
CN101419716A (en) * | 2008-12-08 | 2009-04-29 | 北大方正集团有限公司 | Character typesetting method and device |
CN102510539A (en) * | 2011-12-02 | 2012-06-20 | 深圳市万兴软件有限公司 | Method and system for displaying content on playing video |
CN102984595A (en) * | 2012-12-31 | 2013-03-20 | 北京京东世纪贸易有限公司 | Image processing system and image processing method |
CN103176969A (en) * | 2011-12-20 | 2013-06-26 | 腾讯科技(深圳)有限公司 | Method and device for sharing microblogging information |
JP2014026534A (en) * | 2012-07-27 | 2014-02-06 | Dainippon Printing Co Ltd | Composition device, composition data creation method, and composition data creation processing program |
CN103903292A (en) * | 2012-12-27 | 2014-07-02 | 北京新媒传信科技有限公司 | Method and system for realizing head portrait editing interface |
-
2015
- 2015-04-25 CN CN201510199684.7A patent/CN104766353B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001059576A1 (en) * | 2000-02-12 | 2001-08-16 | Adobe Systems Incorporated | Text grid creation tools |
CN101196875A (en) * | 2007-12-29 | 2008-06-11 | 北京方正国际软件系统有限公司 | Typesetting method for implementing multiple alignment in word rows |
CN101419716A (en) * | 2008-12-08 | 2009-04-29 | 北大方正集团有限公司 | Character typesetting method and device |
CN102510539A (en) * | 2011-12-02 | 2012-06-20 | 深圳市万兴软件有限公司 | Method and system for displaying content on playing video |
CN103176969A (en) * | 2011-12-20 | 2013-06-26 | 腾讯科技(深圳)有限公司 | Method and device for sharing microblogging information |
JP2014026534A (en) * | 2012-07-27 | 2014-02-06 | Dainippon Printing Co Ltd | Composition device, composition data creation method, and composition data creation processing program |
CN103903292A (en) * | 2012-12-27 | 2014-07-02 | 北京新媒传信科技有限公司 | Method and system for realizing head portrait editing interface |
CN102984595A (en) * | 2012-12-31 | 2013-03-20 | 北京京东世纪贸易有限公司 | Image processing system and image processing method |
Also Published As
Publication number | Publication date |
---|---|
CN104766353A (en) | 2015-07-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104766353B (en) | The method and device of word content is added in background | |
US10380228B2 (en) | Output generation based on semantic expressions | |
US8078963B1 (en) | Efficient creation of documents | |
US6278462B1 (en) | Flexible schemes for applying properties to information in a medium | |
Wolf | Metareference across media | |
US7737996B2 (en) | Techniques for automated animation | |
US20120284595A1 (en) | Automatic Page Layout System and Method | |
KR101158418B1 (en) | Digital cartoon contents authoring tool for mobile terminal and authoring method using the same | |
Leete | Microsoft Expression Blend Bible | |
Chilton et al. | VisiFit: Structuring iterative improvement for novice designers | |
Halper et al. | Creating non-photorealistic images the designer's way | |
US9349308B2 (en) | Dynamic application of a design across multiple product packages | |
JP2004527933A (en) | Improved apparatus and method for replacing decorative images with text and / or pictorial patterns | |
KR102613143B1 (en) | Text-to-video production methods, devices, facilities and media | |
US20160246761A1 (en) | Method for quickly inserting wordart in pdf document | |
KR20130110764A (en) | Method for generating 3-dimensional advertisement using 3d-engine | |
JP2003122737A5 (en) | ||
US20240144443A1 (en) | Automatic Text Legibility Improvement within Graphic Designs | |
Clayton | How Do I Do That In InDesign? | |
Bleicher et al. | SketchUp 2014 for architectural visualization | |
Anton et al. | Adobe Indesign CC Classroom in a Book (2014 Release) | |
Shupe et al. | Flash 8: Projects for Learning Animation and Interactivity: Projects for Learning Animation and Interactivity | |
Snider | Photoshop CC: The Missing Manual | |
Brody | Electronic Workflow for Interior Designers & Architects | |
AU8425298A (en) | A Font architecture and creation tool for producing richer text |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20200414 Address after: 410000 room a1380, headquarters building, Changsha Zhongdian Software Park Co., Ltd., No.39, Jianshan Road, high tech Development Zone, Changsha City, Hunan Province Patentee after: Changsha ge'ermen Intelligent Technology Co., Ltd Address before: 113 Yuchi lane, Jianshe community, Chengguan Town, you County, Zhuzhou City, Hunan Province Patentee before: Chen Baorong |