CN104766353A - Method and device for adding text content into background - Google Patents

Method and device for adding text content into background Download PDF

Info

Publication number
CN104766353A
CN104766353A CN201510199684.7A CN201510199684A CN104766353A CN 104766353 A CN104766353 A CN 104766353A CN 201510199684 A CN201510199684 A CN 201510199684A CN 104766353 A CN104766353 A CN 104766353A
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.)
Granted
Application number
CN201510199684.7A
Other languages
Chinese (zh)
Other versions
CN104766353B (en
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.)
Changsha ge'ermen Intelligent Technology Co., Ltd
Original Assignee
陈包容
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 陈包容 filed Critical 陈包容
Priority to CN201510199684.7A priority Critical patent/CN104766353B/en
Publication of CN104766353A publication Critical patent/CN104766353A/en
Application granted granted Critical
Publication of CN104766353B publication Critical patent/CN104766353B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a method and device for adding text content into a background. The method comprises the steps of obtaining the background into which the text content needs to be added and the text content needing to be added into the background, wherein the text content is character strings of the text format; building a first picture layer with the same size as the background on the background; creating a text box according to the character strings; filling the text box with the character strings; loading and displaying the text box on the first picture layer. The technical problem that the text content cannot be flexibly replaced due to the fact that a text content template picture needs to be manufactured when the text content is added into an existing background is solved, and the text content added into the background can be dynamically adjusted only by adjusting the text content of the text format.

Description

Method and the device of word content is added in background
Technical field
The present invention relates to background editor field, be specifically related to the method and the device that add word content in a kind of background.
Background technology
At present, more and more extensive to the application of background editor, particularly to the application adding word content in picture or video background, such as, microblogging camera in photograph taking and software for editing can realize the function of adding word content in the photo after shooting or video, and word content can be shown according to portrait.The process of word content is added mainly: first in photograph taking and software for editing database, set up a series of word content template picture in this photo after shooting or video, then the word content template picture that user selects is pasted on photo after the picture is taken or video, thus realize adding word content in photo or video.
Adopt this by making word content template picture, and then there is following problem in the method after the word content template picture of making being attached to shooting, photo or video realizing adding in background word content.First, need to make word content template picture, causing the flexible replacement that can not realize word content, namely when needing need replace different literals content template picture when adding different word contents in photo or video, causing word content template picture to make workload large; The second, word content template picture is attached to and the photo after shooting or video may occurs word content template picture and to take pictures or video is fitted unmatched problem, thus cause edit effect not good.So, need badly and a kind of method and the device that realize adding in background word content without the need to making word content template picture are provided.
Summary of the invention
The invention provides the method and device of in a kind of background, adding word content, need to make word content template picture to solve the existing word content that adds in background, cause realizing the technical matters that word content is replaced flexibly.
According to an aspect of the present invention, provide a kind of method of adding word content in image background, comprising:
Obtain the word content needing in the background of word content to be added and background to add, word content is the character string of text formatting;
Background sets up first layer identical with background size;
Text box is created according to character string;
Fill character string to text box;
Text box is loaded and is presented in the first layer.
Further, create text box according to character string to comprise:
According to the number of characters threshold value preset and the symbol of presetting, character string is split, obtain multiple character field;
After judging that the number of character field is less than default character field threshold value, the text box corresponding with it is created to each character field.
Further, create the text box corresponding with it to each character field to comprise:
Determine that splitting number of characters corresponding to the maximum character field of rear number of characters is max number of characters;
According to the word line spacing information of character after the word high information determination typesetting of character after the height of the first layer, max number of characters, default typesetting;
The elevation information of the text box corresponding with character field is determined according to the word high information of character after the word line spacing information of character after typesetting, the number of characters of character field, default typesetting;
According to the wide information creating text box of word of character after elevation information and default typesetting, and the width energy of text box is set and a character can only be held;
The text display mode of text box is set to the pattern that automatically enters a new line.
Further, create the text box corresponding with it to each character field to comprise:
Obtain the elevation information of the text box corresponding with character field preset, the height of the default text box corresponding with character field is less than the height of the first 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 energy of text box is set and a character can only be held;
The text display mode of text box is set to the pattern that automatically enters a new line.
Further, string to text box of filling character comprises:
Fill each character field to the text box corresponding with it;
According to character after the word high information of character, the wide information of word, font information and typesetting after the typesetting preset
Word line spacing information carries out typesetting to each character field.
Further, text box loaded and be presented in the first layer and comprise:
Adopted by each text box iteration or recycle design to add in the first layer and show;
According to the frame pitch information of text box after the word wide information determination typesetting of character after the width of the first layer, the number of character field, default typesetting;
According to frame pitch information, typesetting is carried out to the text box added in the first layer.
Further, word content is poem content, and poem content comprises title, author's title, verse content, and authors' name is called No. ID, the registration of the software client adding poem content in background, registers the combination in any of the pet name, self-defined title.
According to a further aspect in the invention, provide the device adding word content in a kind of image background, comprising: acquisition device, the first layer creation apparatus, text box creation apparatus, filling device and loaded and displayed device; Wherein,
Acquisition device, for obtaining the word content needing in the background of word content to be added and background to add, word content is the character string of text formatting;
First layer creation apparatus, for setting up first layer identical with background size in background;
Text box creation apparatus, for creating text box according to character string;
Filling device, for string of filling character to text box;
Loaded and displayed device, for loading text box and being presented at the first layer.
Further, text box creation apparatus comprises:
Character string detachment device, for splitting character string according to the number of characters threshold value preset and the symbol of presetting, obtains multiple character field;
Character field text box creation apparatus, for after judging that the number of character field is less than default character field threshold value, then creates the text box corresponding with it to each character field.
Further, character field text box creation apparatus comprises:
Max number of characters determining device device, for determining that splitting number of characters corresponding to the maximum character field of rear number of characters is max number of characters;
Word line spacing information determining device, for the word line spacing information of character after the word high information determination typesetting of character after the height according to the first layer, max number of characters, default typesetting;
Height determining device, determines the elevation information of the text box corresponding with character field for the word high information of character after the number of characters of the word line spacing information according to character after typesetting, character field, default typesetting;
Width setting device, for the wide information creating text box of word according to character after elevation information and default typesetting, and arranges the width energy of text box and can only hold a character;
Automatic line feed pattern setting device, for being set to the text display mode of text box the pattern that automatically enters a new line.
The present invention has following beneficial effect:
The invention provides the method and device of adding word content in a kind of background, by obtaining the word content needing in the background of word content to be added and background to add, word content is the character string of text formatting; Background sets up first layer identical with background size; Text box is created according to character string; Fill character string to text box; Text box is loaded and is presented in the first layer, solve the existing word content that adds in background to need to make word content template picture, cause realizing the technical matters that word content is replaced flexibly, achieve the word content only needing the word content adjusting text formatting to add in background with regard to dynamic adjustment.
Except object described above, feature and advantage, the present invention also has other object, feature and advantage.Below with reference to figure, the present invention is further detailed explanation.
Accompanying drawing explanation
The accompanying drawing forming a application's part is used to provide a further understanding of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the method flow diagram adding word content in background of the preferred embodiment of the present invention;
Fig. 2 is the design sketch added in background after the poem content of vertical setting of types typesetting of the preferred embodiment of the present invention;
Fig. 3 is the device schematic diagram adding word content in background of the preferred embodiment of the present invention.
Description of reference numerals:
10, acquisition device; 20, the first layer creation apparatus; 30, text box creation apparatus; 40, filling device; 50, loaded and displayed device.
Embodiment
Below in conjunction with accompanying drawing, embodiments of the invention are described in detail, but the multitude of different ways that the present invention can be defined by the claims and cover is implemented.
With reference to Fig. 1, the preferred embodiments of the present invention provide a kind of method of adding word content in background, comprising:
Step S101, obtain the word content needing in the background of word content to be added and background to add, word content is the character string of text formatting;
Step S103, background sets up first layer identical with background size;
Step S105, creates text box according to character string;
Step S107, string of filling character is to text box;
Step S109, loads text box and is presented in the first layer.
Add the method for word content in background of the present invention, by obtaining the word content needing in the background of word content to be added and background to add, word content is the character string of text formatting; Background sets up first layer identical with background size; Text box is created according to character string; Fill character string to text box; Text box is loaded and is presented in the first layer, solve the existing word content that adds in background to need to make word content template picture, cause realizing the technical matters that word content is replaced flexibly, achieve the word content only needing the word content adjusting text formatting to add in background with regard to dynamic adjustment.
Alternatively, step S105, creates text box according to character string and comprises:
According to the number of characters threshold value preset and the symbol of presetting, character string is split, obtain multiple character field;
After judging that the number of character field is less than default character field threshold value, the text box corresponding with it is created to each character field.
Owing to adding word content by making word content template picture in background, mainly for the situation that the word content added in background needs vertical setting of types to show, therefore the present embodiment is by first splitting word content, then each character field after fractionation is carried out the vertical setting of types typesetting display that vertical setting of types typesetting display realizes word content.The symbol preset in the present embodiment can be comma, branch, newline etc.The present embodiment according to the number of characters threshold value preset and the symbol of presetting to the specific implementation process that character string splits is: first according to the symbol preset, character string is split into multiple character field, then judge whether the number of characters in each character field exceedes default number of characters threshold value, if exceed, is again split by this character field according to number of characters threshold value.
In addition, the present embodiment obtains multiple character field number after splitting character string judges to only have after judging that the number of character field is less than default character field threshold value, just create the text box corresponding with it to each character field.This is mainly due to after background is determined, height and the width of the first layer also just secure, and the capacity namely adding word content in background can not be infinitely great; In addition, in background, add word content be mainly to edit and the jumbo word particular content of non-exhibiting background, therefore consider the aesthetic property after word content interpolation, when the typesetting of word content vertical setting of types can be tentatively set allow the vertical setting of types number that shows, namely the character field threshold value preset, after the word content of input is exceeded default character field threshold value by the character field number after splitting, then select not add this word content to background.When the number of characters threshold value preset of the present embodiment is for controlling the typesetting of word content vertical setting of types each vertical setting of types allow the number of characters that shows, when default character field threshold value is for controlling the typesetting of word content vertical setting of types, institute allows the vertical setting of types number of display.Adopt and character string is split, and create text box corresponding to each character field simultaneously, the feature of computing machine concurrent operation can be made full use of, thus improve speed and the efficiency of adding word content to background; Meanwhile, brief character field can be obtained by carrying out character string splitting, thus facilitate the vertical setting of types typesetting of word content.
Alternatively, create the text box corresponding with it to each character field to comprise: determine that splitting number of characters corresponding to the maximum character field of rear number of characters is max number of characters; According to the word line spacing information of character after the word high information determination typesetting of character after the height of the first layer, max number of characters, default typesetting; The elevation information of the text box corresponding with character field is determined according to the word high information of character after the word line spacing information of character after typesetting, the number of characters of character field, default typesetting; According to the wide information creating text box of word of character after elevation information and default typesetting, and the width energy of text box is set and a character can only be held; The text display mode of text box is set to the pattern that automatically enters a new line.
The word line-spacing of character after the typesetting of the present embodiment determine by following formula:
Wherein, be the height of the first layer, be the width of the first layer, for max number of characters, for after default typesetting, the word of character is high.
According to the word line-spacing of character after above formula determination typesetting after, just can calculate the height of text box , the height of text box determined by following formula:
Wherein, for the number of characters of character field, for after default typesetting, the word of character is high, for the word line-spacing of character after the typesetting of selection.Just can create text box according to the wide information of word of character after the said process elevation information calculated and the typesetting preset, and the width energy of text box is set and a character can only be held.
Alternatively, create the text box corresponding with it to each character field to comprise: the elevation information obtaining the text box corresponding with character field preset, the height of the text box corresponding with character field preset is less than the height of the first 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 energy of text box is set and a character can only be held; The text display mode of text box is set to the pattern that automatically enters a new line.
Consider that the elevation information process that employing calculates text box by the word line-spacing of character after calculating typesetting is loaded down with trivial details, the present embodiment is by presetting the height (height of the text box preset is less than the first figure layer height) of text box, and calculate the extended formatting information after typesetting based on this TextField._height information preset, the word of such as character is high, decrease the high computational process of text box, and by being set to identical by the height of text box corresponding for each character field, thus improve text box establishment efficiency.
The present embodiment equals by creating width the text box that the word of character is wide after default typesetting, and the text display mode of text box is set to the method for the pattern that automatically enters a new line, and can realize the effect of word vertical setting of types, implementation procedure is simple.
Alternatively, string to text box of filling character comprises: fill each character field to the text box corresponding with it; According to the word line spacing information of character after the word high information of character, the wide information of word, font information and typesetting after the typesetting preset, typesetting is carried out to each character field.
The present embodiment is by first filling each character field to the text box corresponding with it, according to the word line spacing information of character after the word high information of character, the wide information of word, font information and typesetting after the typesetting preset, typesetting is carried out to each character field again, thus realize carrying out flexible typesetting to the character in character field.
Alternatively, text box loaded and be presented in the first layer and comprise: adopted by each text box iteration or recycle design to add in the first layer and show; According to the frame pitch information of text box after the word wide information determination typesetting of character after the width of the first layer, the number of character field, default typesetting; According to frame pitch information, typesetting is carried out to the text box added in the first layer.
After the present embodiment typesetting, the frame pitch information of text box can be determined by following formula:
Wherein, for the frame spacing of text box after typesetting, for after default typesetting, the word of character is wide, for the number of character field.
The present embodiment in step S105 by preset number of characters threshold value and preset symbol to character string carry out fractionation obtain multiple character field time, also comprise to split after character field carry out logical number.Therefore, when text box is created to each character field and by character field fills to text box after, only need to adopt iteration or recycle design to add in the first layer according to the numbering of character field in text box, and then according to the frame pitch information of text box after the typesetting calculated, typesetting is carried out to the text box added in the first layer, just can realize the word content adding vertical setting of types typesetting in background, solve in prior art the picture that word content template picture is attached to and the picture after shooting or video may occurs word content template picture and shooting or video to fit unmatched problem, thus the technical matters causing edit effect not good, achieve the word content and background itself good fit that add to background.
Alternatively, word content is poem content, and poem content comprises title, author's title, verse content, and authors' name is called No. ID, the registration of the software client adding poem content in background, registers the combination in any of the pet name, self-defined title.Because poem content is generally made up of brief verse, therefore during background editor, the word content with poetry art style is added into the favor of the dark audient multi-user of edit mode of background.In the present embodiment poem content author's title by detect in background, add the software client of poem content No. ID, registration, the registration pet name, the combination in any of self-defined title and automatic acquisition, thus achieve can not only author's title of dynamic conditioning poem content, can also Consumer's Experience be strengthened, improve edit effect.
Below the process of method and principle of adding word content in the background of the embodiment of the present invention are illustrated further.
Step S101, obtain the word content needing in the background of word content to be added and background to add, word content is the character string of text formatting, the background of the present embodiment is picture, word content is poem content, comprise title, author's title and verse content, be specially "@in front of the door/Gu Cheng, grass is shaking its % kind, wind is shaking its leaf, we stand, do not say %, fine with regard to % ten points ", wherein, "@" symbol is the title prompt of poem content, "/" symbol is the separator of the title of poem content and author's title of poem content, " % " symbol is space display symbol, and No. ID, the registration adding the software client of poem content in background that author's title (Gu Cheng) of poem content is system automatic acquisition, the registration pet name, the combination in any of self-defined title.The present embodiment also can be self-defined and arrange the representative implication of symbol, as long as the content of text of poem content and form meet definition rule, just can realize being added in background.
Step S103, background sets up first layer identical with background size; The height of the background that the present embodiment is chosen is 6 , width is 10 , therefore the height of the first layer , width .
Step S105, creates text box according to character string, and the present embodiment creates text box according to character string and comprises:
According to the number of characters threshold value preset and the symbol of presetting, character string is split, obtain multiple character field: the number of characters threshold value that the present embodiment is preset , the symbol that the present embodiment is preset comprises separator, the comma of title prompt, title and author's title, therefore obtains seven character fields respectively after splitting character string according to the symbol preset: title: in front of the door; Author: Gu Cheng; First verse: grass is shaking its % kind; Second verse: wind is shaking its leaf; 3rd verse: we stand; 4th verse: do not say %; 5th verse: fine with regard to % ten points.In addition, the present embodiment carries out logical number to the character field split, thus facilitates follow-up typesetting and display.
After judging that the number of character field is less than default character field threshold value, the text box corresponding with it is created to each character field: the character field threshold value preset due to the present embodiment , therefore when the result after judging character string fractionation satisfies condition, the text box corresponding with it is created to each character field.The present embodiment is described to create the text box corresponding with it to the first verse content character field (grass is shaking its % kind):
First determine to split the max number of characters that number of characters corresponding to the maximum character field of rear number of characters is max number of characters, the present embodiment , then according to the word line spacing information of character after the word high information determination typesetting of character after the height of the first layer, max number of characters, default typesetting, after the first verse typesetting that the present embodiment is preset, the word of character is high =0.5 ; According to can obtain , the present embodiment is chosen within the scope of this the word line-spacing scope of character after typesetting is calculated by asking for max number of characters, the typesetting requirement of the maximum text box of number of characters can be met, thus the word line-spacing that can realize character after typesetting in all text boxes is equal, avoid and the word line-spacing of character after typesetting in each text box is calculated, and typesetting effect is more neat and attractive in appearance.
Determine the elevation information of the text box corresponding with the first verse character field according to the word high information of character after the word line spacing information of character after the first verse typesetting, the number of characters of the first verse character field, the first default verse typesetting, the present embodiment according to the height of the text box that the first verse is corresponding can be determined namely , wherein it is the number of characters in the first verse character field.
And then according to the wide information creating text box of word of character after the elevation information of text box corresponding to the first verse and the first verse typesetting of presetting, and the width energy of text box is set and a character can only be held, after the typesetting of the present embodiment first verse, the word of character is wide ; Finally the text display mode of text box is set to the pattern that automatically enters a new line.It should be noted that, in specific implementation process, after the typesetting that each character field is preset, the word of character is high can be identical, also can be different, such as, the word of the character preset in the character field of general title place is high can be high slightly larger than the word of the character preset in the character field of verse place.
Step S107, string of filling character is to text box; Due in step S105, character string is split into multiple character field, and each character field creates text box corresponding with it, therefore only need by the fills of each character field in corresponding text box, then according to the word line spacing information of character after the word high information of character after the typesetting preset, the wide information of word, font information and typesetting, typesetting is carried out to each character field.The composition information that the present embodiment is preset is not limited to only include word high information, the wide information of word, the font information of character after typesetting, such as, can also comprise the colouring information or other attribute informations etc. of character.
Step S109, loads text box and is presented in the first layer.Create seven text boxes load and are presented in the first layer and comprise by the present embodiment:
First adopt iteration or recycle design to add in the first layer each text box, due to adopt in step S105 default symbol to character string carry out fractionation obtain multiple character field time, also comprise and logical number carried out to the character field after splitting.Therefore, when text box is created to each character field and by character field fills to text box after, only need to be adopted by text box iteration or recycle design to add in the first layer according to the numbering of character field in text box and show;
Then according to the frame pitch information of text box after the width determination typesetting of the number of the width of the first layer, character field, text box, the present embodiment according to , can obtain , wherein, for after default typesetting, the word of character is wide, for the number of character field, the present embodiment is got , get .
Finally according to frame pitch information, typesetting is carried out to the text box added in the first layer again.In actual mechanical process, the first layer size is generally set and is slightly less than background size, thus allow the text box after typesetting leave certain interval from initial photo border.
In order to the verse content of the author's title and poem content of better distinguishing poem content, the present embodiment is also provided with a specific separator between the two shows at this, specific practice also creates the text box that comprises this specific separator after establishment seven text boxes, and load simultaneously with seven text boxes and be presented in the first layer, specifically can refer to Fig. 2.Fig. 2 is the design sketch after the present embodiment adds the poem content of vertical setting of types typesetting in background, when needs are replaced or change poem content, the present embodiment makes poem content template picture without the need to passing through, only need the content of text changing poem context string, dirigibility is comparatively large, changes convenient and swift and easily realizes.
With reference to Fig. 3, according to a further aspect in the invention, provide the device adding word content in a kind of background, comprising: acquisition device 10, first layer creation apparatus 20, text box creation apparatus 30, filling device 40 and loaded and displayed device 50; Wherein,
Acquisition device 10, for obtaining the word content needing in the background of word content to be added and background to add, word content is the character string of text formatting;
First layer creation apparatus 20, for setting up first layer identical with background size in background;
Text box creation apparatus 30, for creating text box according to character string;
Filling device 40, for string of filling character to text box;
Loaded and displayed device 50, for loading text box and being presented at the first layer.
Alternatively, text box creation apparatus 30 comprises:
Character string detachment device, for splitting character string according to the number of characters threshold value preset and the symbol of presetting, obtains multiple character field;
Character field text box creation apparatus, for after judging that the number of character field is less than default character field threshold value, then creates the text box corresponding with it to each character field.
Alternatively, character field text box creation apparatus comprises:
Max number of characters determining device device, for determining that the number of characters splitting the maximum described character field of rear number of characters corresponding is max number of characters;
Word line spacing information determining device, for the word line spacing information of character after the word high information determination typesetting of character after the height according to described first layer, described max number of characters, default typesetting;
Height determining device, determines the elevation information of the text box corresponding with character field for the word high information of character after the number of characters of the word line spacing information according to character after typesetting, character field, default typesetting;
Width setting device, for the wide information creating text box of word according to character after elevation information and default typesetting, and arranges the width energy of text box and can only hold a character;
Automatic line feed pattern setting device, for being set to the text display mode of text box the pattern that automatically enters a new line.
The course of work and the principle of work of in the background that the specific works process of the device of word content and principle of work can refer in the present embodiment, adding the method for word content is added in the background of the present embodiment.All or part of content in the technical scheme that above embodiment provides can be realized by software programming, and its software program is stored in the storage medium that can read, storage medium such as: the hard disk in computing machine, CD or floppy disk.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. add a method for word content in background, it is characterized in that, comprising:
Obtain the word content needing in the background of word content to be added and described background to add, described word content is the character string of text formatting;
Described background sets up first layer identical with described background size;
Text box is created according to described character string;
Fill described character string to described text box;
Described text box is loaded and is presented in described first layer.
2. add the method for word content in background according to claim 1, it is characterized in that, create text box according to described character string and comprise:
According to the number of characters threshold value preset and the symbol of presetting, described character string is split, obtain multiple character field;
After judging that the number of described character field is less than default character field threshold value, the text box corresponding with it is created to character field described in each.
3. add the method for word content in background according to claim 2, it is characterized in that, the text box corresponding with it is created to character field described in each and comprises:
Determine that the number of characters splitting the maximum described character field of rear number of characters corresponding is max number of characters;
According to the word line spacing information of character after the word high information determination typesetting of character after the height of described first layer, described max number of characters, default typesetting;
The elevation information of the text box corresponding with described character field is determined according to the word high information of character after the number of characters of the word line spacing information of character after described typesetting, described character field, described default typesetting;
According to the wide information creating text box of word of character after described elevation information and described default typesetting, and the width energy of described text box is set and a character can only be held;
The text display mode of described text box is set to the pattern that automatically enters a new line.
4. add the method for word content in background according to claim 2, it is characterized in that, the text box corresponding with it is created to character field described in each and comprises:
Obtain the elevation information of the text box corresponding with described character field preset, the height of the described default text box corresponding with described character field is less than the height of described first layer, and the height of text box corresponding to character field described in each is identical;
According to the wide information creating text box of word of character after described elevation information and described default typesetting, and the width energy of described text box is set and a character can only be held;
The text display mode of described text box is set to the pattern that automatically enters a new line.
5. add the method for word content in background according to claim 3, it is characterized in that, fill described character string to described text box and comprise:
Fill character field described in each to the text box corresponding with it;
According to the word line spacing information of character after the word high information of character, the wide information of word, font information and described typesetting after the typesetting preset, typesetting is carried out to character field described in each.
6. add the method for word content in background according to claim 5, it is characterized in that, described text box is loaded and is presented in described first layer and comprise:
Adopted by text box described in each iteration or recycle design to add in described first layer and show;
According to the frame pitch information of text box after the word wide information determination typesetting of character after the number of the width of described first layer, described character field, described default typesetting;
According to described frame pitch information, typesetting is carried out to the text box added in described first layer.
7. add the method for word content in background according to claim 6, it is characterized in that,
Described word content is poem content, and described poem content comprises title, author's title, verse content, and described authors' name is called No. ID, the registration of the software client adding described poem content in background, registers the combination in any of the pet name, self-defined title.
8. add a device for word content in background, it is characterized in that, comprising: acquisition device (10), the first layer creation apparatus (20), text box creation apparatus (30), filling device (40) and loaded and displayed device (50); Wherein,
Described acquisition device (10), for obtaining the word content needing in the background of word content to be added and described background to add, described word content is the character string of text formatting;
Described first layer creation apparatus (20), for setting up first layer identical with described background size in described background;
Described text box creation apparatus (30), for creating text box according to described character string;
Described filling device (40), for filling described character string to described text box;
Described loaded and displayed device (50), for loading described text box and being presented at described first layer.
9. add the device of word content in background according to claim 8, it is characterized in that, described text box creation apparatus (30) comprising:
Character string detachment device, for splitting described character string according to the number of characters threshold value preset and the symbol of presetting, obtains multiple character field;
Character field text box creation apparatus, for after judging that the number of described character field is less than default character field threshold value, then creates the text box corresponding with it to character field described in each.
10. add the device of word content in background according to claim 9, it is characterized in that, described character field text box creation apparatus comprises:
Max number of characters determining device device, for determining that the number of characters splitting the maximum described character field of rear number of characters corresponding is max number of characters;
Word line spacing information determining device, for the word line spacing information of character after the word high information determination typesetting of character after the height according to described first layer, described max number of characters, default typesetting;
Height determining device, determines the elevation information of the text box corresponding with described character field for the word high information of character after the number of characters of the word line spacing information according to character after described typesetting, described character field, described default typesetting;
Width setting device, for the wide information creating text box of word according to character after described elevation information and described default typesetting, and arranges the width energy of described text box and can only hold a character;
Automatic line feed pattern setting device, for being set to the text display mode of described text box the pattern that automatically enters a new line.
CN201510199684.7A 2015-04-25 2015-04-25 The method and device of word content is added in background Active CN104766353B (en)

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 true CN104766353A (en) 2015-07-08
CN104766353B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104994312A (en) * 2015-07-15 2015-10-21 北京金山安全软件有限公司 Video generation method and device
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
CN105825535B (en) * 2016-03-18 2018-06-05 广东欧珀移动通信有限公司 A kind of figure layer merging method and system
CN109145266A (en) * 2018-07-25 2019-01-04 珠海市圈宝网络科技有限公司 A method of dynamic PDP file is quickly generated from picture
WO2019184539A1 (en) * 2018-03-28 2019-10-03 阿里巴巴集团控股有限公司 Image processing
CN111274765A (en) * 2019-06-01 2020-06-12 向英 Text processing method, software and equipment
CN113438543A (en) * 2021-06-22 2021-09-24 深圳市大头兄弟科技有限公司 Matching method, device and equipment for converting document into video and storage medium
CN113497899A (en) * 2021-06-22 2021-10-12 深圳市大头兄弟科技有限公司 Character and picture matching method, device and equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
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

Patent Citations (8)

* Cited by examiner, † Cited by third party
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

Cited By (11)

* Cited by examiner, † Cited by third party
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
WO2019184539A1 (en) * 2018-03-28 2019-10-03 阿里巴巴集团控股有限公司 Image processing
TWI698835B (en) * 2018-03-28 2020-07-11 香港商阿里巴巴集團服務有限公司 Image processing method and device and computer-readable storage medium
CN109145266A (en) * 2018-07-25 2019-01-04 珠海市圈宝网络科技有限公司 A method of dynamic PDP file is quickly generated from picture
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
CN113438543A (en) * 2021-06-22 2021-09-24 深圳市大头兄弟科技有限公司 Matching method, device and equipment for converting document into video and storage medium
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

Also Published As

Publication number Publication date
CN104766353B (en) 2018-03-30

Similar Documents

Publication Publication Date Title
CN104766353A (en) Method and device for adding text content into background
US8890886B2 (en) User interface with color themes based on input image data
US10074200B1 (en) Generation of imagery from descriptive text
US8161379B2 (en) Fit and fill techniques for pictures
CN104090979A (en) Method and device for editing webpage
CN105376651B (en) Method and device for generating video slides
CN102651138B (en) JPEG picture mosaicing-based oversize picture synthesis method
CN104750393B (en) Wallpaper method to set up and device
US20120284595A1 (en) Automatic Page Layout System and Method
Sandhaus et al. Employing aesthetic principles for automatic photo book layout
JP2014106968A (en) Apparatus, method and computer readable recording medium for automatically arranging a plurality of items in canvas
CN104700442A (en) Image processing method and system for automatic filter and character adding
CN112614211A (en) Method and device for text and image self-adaptive typesetting and animation linkage
CN112257406A (en) Content cover generator and method based on web front end
US20160314502A1 (en) System and method for streamlining the design and development process of multiple advertising units
CN106780302A (en) A kind of digital picture automatic keyline layout method and device
CN106484413A (en) Document editor and document edit method
KR20180046419A (en) System of making interactive smart contents based on cloud service
US20210110164A1 (en) Contextualized Video Segment Selection For Video-Filled Text
CN111047673A (en) PPT file generation method and device based on hand-drawn video
Hua et al. Lazycut: content-aware template-based video authoring
EP4124050A1 (en) Image display method and apparatus, device, and storage medium
CN110390087A (en) A kind of image processing method and device applied to PowerPoint
CN110992438B (en) Picture editing method and device
KR20230023804A (en) Text-video creation methods, devices, facilities and media

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