CN104240175A - Image editing and rendering method and device - Google Patents
Image editing and rendering method and device Download PDFInfo
- Publication number
- CN104240175A CN104240175A CN201310228876.7A CN201310228876A CN104240175A CN 104240175 A CN104240175 A CN 104240175A CN 201310228876 A CN201310228876 A CN 201310228876A CN 104240175 A CN104240175 A CN 104240175A
- Authority
- CN
- China
- Prior art keywords
- editing
- reference record
- editing operation
- picture
- record item
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Television Signal Processing For Recording (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention provides an image editing and rendering method and device. The image editing and rendering method comprises the steps that when an editing operation instruction of the same object to be edited is received, editing operation data in the editing operation instruction are extracted; an editing record item is generated for a corresponding editing image in the object to be edited according to the editing operation data; the generated editing record item is stored in a corresponding editing record stack according to the generation sequence, every time of editing operation on the image is abstracted as an editing operation datum stored in the editing record item of the editing record stack, and when the image is rendered, an editing record item is called from the editing record stack corresponding to the editing image; rendering is carried out in sequence through the editing operation data in the editing record item. In the editing and rendering processes, what is stored and extracted is the editing operation data in the editing record item, the occupied internal storage of the data is smaller than that of the image, and the editing and rendering speed of the image is improved.
Description
Technical field
The present invention relates to technical field of image processing, the method and apparatus particularly relating to a kind of picture editor and play up.
Background technology
Along with developing rapidly of ecommerce, picture, as a kind of mode of commodity displaying intuitively, is subject to the favor of most of businessman.Before uploading the picture of displaying merchandise, in order to make picture more attractive in appearance, need to beautify original image, the editing operation such as cutting; In order to prevent illegal businessman from usurping picture, some businessmans also can carry out to picture the editing operation adding picture watermark and/or text watermark.
At present, the software of the specialties such as PhotoShop is usually adopted to beautify picture, add the editing operations such as watermark.Picture is being carried out in the process of editing and processing, editing operation be each time all to last editing operation after picture play up.In the process of whole picture editor, often perform a step editing operation, the picture stored after needing to extract last editor, after carrying out editing operation, then carries out playing up and is stored by the picture after playing up again.
Those skilled in the art, when adopting aforesaid way to edit picture, find that there is following shortcoming:
The method of the software editing picture of the specialty such as above-mentioned employing PhotoShop, in editing picture process, often performs a step editing operation, needs to call and picture; And in the process of editing picture, during preview picture, also need to call stored picture and carry out preview.Internal memory shared by picture is comparatively large, when calling with picture, the editing operation processing speed of picture can be caused very slow.
Summary of the invention
In view of this, the method and apparatus embodiments providing a kind of picture editor and play up, is realized the editor of picture by the editing operation data storing and extract in reference record item and is played up, the speed that improve picture editor and play up.
A picture editor's method, is applied to object to be edited, and described object to be edited comprises at least one editing picture, and described method comprises:
When receiving an editing operation instruction about same object to be edited, extract the editing operation data in described editing operation instruction;
Be that corresponding editing picture in described object to be edited generates a reference record item according to described editing operation data;
Generated reference record item is stored into reference record stack corresponding to described corresponding editing picture according to the sequencing generated.
Optionally,
Described editing operation data also comprise recording status;
Then described generated reference record item is stored into corresponding to described corresponding editing picture reference record stack according to the sequencing generated after also comprise:
When generated reference record item is identical with the recording status of the reference record item that upper generates, identical for recording status two reference record items are merged;
Utilize the result merged to replace a upper reference record item generated, and delete the reference record item generated.
Optionally, described editing operation instruction comprises:
Beautify operational order and/or water mark operation instruction.
Optionally,
When editing operation instruction is for beautifying operational order, also comprise after the editing operation data in the described editing operation instruction of described extraction:
Described editing operation data render is utilized to generate an editing memory mirror image, using described editing memory mirror image as the edit object in the editing operation data that next editing operation instruction comprises.
Optionally,
When editing operation instruction is water mark operation instruction, described editing operation data also comprise:
Edit object identifies, and described edit object mark is used for unique identification edit object.
Optionally, described method also comprises:
Delete any one or more reference record items in the reference record stack corresponding to described corresponding editing picture.
Optionally, also comprise before described reception first editing operation instruction:
Carry out pre-service to described object to be edited, described pre-service comprises: the corresponding editing picture in described object to be edited is generated a picture memory mirror as the edit object in editing operation data.
The method that picture is played up, is applied at least one editing picture, and described method comprises:
Reference record item is called from the reference record stack corresponding to editing picture;
The editing operation data in reference record item are utilized to play up successively.
Optionally,
Described editing operation data also comprise entry mark, the type of described entry mark for identifying described reference record item;
Also comprise after calling reference record item then from the reference record stack corresponding to editing picture:
Merge the reference record item with identical recordings item mark;
Utilize the result merged to replace the reference record item coming last, and delete the reference record item that other have identical recordings item mark;
Then describedly the editing operation data in reference record item are utilized to carry out playing up successively comprising:
The editing operation data in the reference record item after merging are utilized to play up successively.
Optionally, described editing operation data comprise editing type, edit object and editor's general-purpose attribute, describedly utilize the editing operation data in reference record item to carry out playing up successively comprising:
According to described editing type determination image processing algorithm;
Utilize described image processing algorithm, according to described editor's general-purpose attribute, described edit object is played up.
A picture editor's device, is applied to object to be edited, and described object to be edited comprises at least one editing picture, and described device comprises:
Extraction unit, during for receiving an editing operation instruction about same object to be edited, extracts the editing operation data in described editing operation instruction;
Generation unit, for being that corresponding editing picture in described object to be edited generates a reference record item according to described editing operation data;
Storage unit, for being stored into reference record stack corresponding to described corresponding editing picture by generated reference record item according to the sequencing generated.
Optionally,
Described editing operation data also comprise recording status;
Then described device also comprises:
First merge cells, for work as generated reference record item identical with the recording status of the reference record item that upper generates time, identical for recording status two reference record items are merged;
First replacement unit, for utilizing the result of merging to replace a upper reference record item generated, and deletes the reference record item generated.
Optionally, described editing operation instruction comprises:
Beautify operational order and/or water mark operation instruction.
Optionally,
When editing operation instruction is for beautifying operational order, described device also comprises:
First rendering unit, for utilizing described editing operation data render to generate an editing memory mirror image, using described editing memory mirror image as the edit object in the editing operation data that next editing operation instruction comprises.
Optionally,
When editing operation instruction is water mark operation instruction, described editing operation data also comprise:
Edit object identifies, and described edit object mark is used for unique identification edit object.
Optionally, described device also comprises:
Delete cells, for deleting any one or more reference record items in the reference record stack corresponding to described corresponding editing picture.
Optionally, described device also comprises:
Pretreatment unit, for carrying out pre-service to described object to be edited, described pre-service comprises: the corresponding editing picture in described object to be edited generates a picture memory mirror as the edit object in editing operation data.
The device that picture is played up, is applied at least one editing picture, and described device comprises:
Call unit, for calling reference record item from the reference record stack corresponding to editing picture;
Second rendering unit, plays up successively for utilizing the editing operation data in reference record item.
Optionally,
Described editing operation data also comprise entry mark, the type of described entry mark for identifying described reference record item;
Then described device also comprises:
Second merge cells, for merging the reference record item with identical recordings item mark;
Second replacement unit, for utilizing the result of merging to replace the reference record item coming last, and deletes the reference record item that other have identical recordings item mark;
Then described second rendering unit comprises:
First plays up subelement, plays up successively for utilizing the editing operation data in the reference record item after merging.
Optionally, described editing operation data comprise editing type, edit object and editor's general-purpose attribute, and described second rendering unit comprises:
Algorithm determining unit, for according to described editing type determination image processing algorithm;
Second plays up subelement, for utilizing described image processing algorithm, plays up described edit object according to described editor's general-purpose attribute.As shown in the above, the present invention has following beneficial effect:
A kind of method embodiments providing picture editor and play up, described method comprises the editing operation instruction often received about same object to be edited, extracts the editing operation data in described editing operation instruction; Be that each editing picture in described object to be edited generates a reference record item according to described editing operation data; Generated reference record item is stored into reference record stack corresponding to each editing picture according to the sequencing generated, by each time to the abstract editing operation data for preserving in the reference record item of reference record stack of the editing operation of picture.Like this, when playing up picture and carrying out preview or preserve, without the need to calling stored picture, but reference record item is called from the reference record stack corresponding to editing picture; The editing operation data in reference record item are utilized to play up successively; Due in the editor and render process of picture, what store and extract is all editing operation data in reference record item, and data committed memory is less than picture, the speed that improve picture editor and play up.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of picture editing method embodiment one of the present invention schematic flow sheet;
Fig. 2 is reference record stack of the present invention and reference record item structural representation;
Fig. 3 is a kind of picture editing method embodiment two of the present invention process flow diagram;
Fig. 4 is embodiment of the method three process flow diagram that a kind of picture of the present invention is played up;
Fig. 5 is embodiment of the method four process flow diagram that a kind of picture of the present invention is played up;
Fig. 6 is device embodiment five structural representation of a kind of picture editor of the present invention;
Fig. 7 is device embodiment six structural representation of a kind of picture editor of the present invention;
Fig. 8 is device embodiment seven structural representation that a kind of picture is played up;
Fig. 9 is device embodiment eight structural representation that a kind of picture is played up.
Embodiment
The method and apparatus that the invention discloses a kind of picture editor and played up, according to editing operation data genaration reference record item, picture is edited, according to the editing operation data in stored reference record item, picture is played up, the speed that improve picture editor and play up.
Below in conjunction with accompanying drawing, the specific embodiment of the invention is described in detail.
Embodiment one
Fig. 1 is a kind of picture editing method embodiment one of the present invention schematic flow sheet, and be applied to object to be edited, described object to be edited comprises at least one editing picture, and described method comprises:
Step 101: when receiving an editing operation instruction about same object to be edited, extracts the editing operation data in described editing operation instruction.
The editing operation instruction of picture editor is comprised: beautify editing operation instruction, watermark editing operation instruction, cutting editing operation instruction or rotate editing operation instruction etc.
Editing operation data comprise editing type, edit object and editor's general-purpose attribute.Wherein, the image processing algorithm adopted when editing type is for determining to play up picture; Edit object is the object that editing operation performs; Editor's general-purpose attribute refers to the concrete content of edit of editing operation.Such as, the edit object in the editing operation data that comprise of general first editing operation instruction is editing picture.
The edit object beautified in the editing operation data of operational order comprises the memory address of editing picture.
Edit object in the editing operation data of water mark operation instruction comprises picture watermark edit object and text watermark edit object.Wherein, picture watermark edit object comprises the memory address of watermark picture; Text watermark edit object comprises word content, font, font size, color, runic, italic and underscore etc.
The editor's general-purpose attribute beautified in the editing operation data of operational order comprises: contrast, saturation degree and lightness etc.
Editor's general-purpose attribute in the editing operation data that water mark operation performs comprises: picture watermark general-purpose attribute and text watermark general-purpose attribute.Wherein, picture watermark general-purpose attribute comprises: displaying ratio, transparency, position offset coordinates and the anglec of rotation etc., and text watermark general-purpose attribute comprises: displaying ratio, transparency, position offset coordinates, the anglec of rotation etc.
Certainly, the effective editor's general-purpose attribute comprised in the editing operation data of each editing operation instruction only has one, comprises following several optional embodiment:
The first optional embodiment:
The editor's general-purpose attribute comprised in the editing operation data of each editing operation instruction only has one, is and effectively edits general-purpose attribute, and to comprised editor's general-purpose attribute assignment.
The optional embodiment of the second:
The editor's general-purpose attribute comprised in the editing operation data of each editing operation instruction has multiple, but only to one of them editing operation attribute assignment, to other editor's general-purpose attribute not assignment, then the editing operation attribute of assignment is effective editing operation attribute.
The third optional embodiment:
The editor's general-purpose attribute comprised in the editing operation data of each editing operation instruction has multiple, to often kind of editor's general-purpose attribute all assignment, only extracts the value of effective editor's general-purpose attribute and editor's general-purpose attribute thereof.
Step 102: be that corresponding editing picture in described object to be edited generates a reference record item according to described editing operation data.
Different editing operation instructions generates different reference record items: beautify editing operation instruction generation and beautify reference record item, watermark editing operation instruction generating watermark reference record item, cutting editing operation instruction generates cutting reference record item, rotates editing operation instruction and generates rotation reference record item.
Wherein, watermark reference record item can be divided into according to the kind difference of watermark: picture watermark reference record item and/or text watermark reference record item.
When only having an editing picture in object to be edited, often receiving an editing operation instruction, is just that an editing picture generates a reference record item; When batch editing picture, multiple editing picture is had in object to be edited, often receive an editing operation instruction, just for each editing picture in object to be edited generates a reference record item, be then that multiple reference record items that different editing pictures generates are all identical under same editing operation instruction.
Such as, when the editing operation instruction received is i-th editing operation instruction, extract the editing operation data in i-th editing operation instruction, if there be n editing picture in object to be edited, then according to editing operation data for each editing picture generates i-th reference record item, namely n i-th reference record item is generated, i-th reference record item of each editing picture is that therefore i-th reference record item of each editing picture is identical based on the editing operation data genaration in i-th editing operation instruction.
Wherein, the integer of i and n all for being more than or equal to 1.
Step 103: generated reference record item is stored into reference record stack corresponding to described corresponding editing picture according to the sequencing generated.
As shown in Figure 2, have n editing picture in same object to be edited, the corresponding reference record stack of each editing picture, namely has n reference record stack.Store m reference record item in each reference record stack, the editing operation data stored in each reference record item can be used for describing an editing operation to editing picture.
Wherein, the integer of the value of m and n all for being more than or equal to 1.
Owing to often receiving an editing operation instruction, be all that each editing picture generates a reference record item, then the number of the reference record item stored in the recording stack corresponding to each editing picture in same object to be edited and the editing operation data be arranged in the reference record item of same position identical.
As shown in Figure 2, have m reference record item, then editing picture 2 to editing picture n in the reference record stack corresponding to editing picture 1, the reference record stack corresponding to each editing picture has m reference record item.Editing operation data in i-th reference record item in reference record stack corresponding to each editing picture are identical.
Wherein, the value of i is be more than or equal to the integer that 1 is less than or equal to m.
Reference record item in each reference record stack stores according to the sequencing generated, before the reference record item first generated comes, after the reference record item of rear generation comes.As shown in Figure 2, first generate reference record item 1, regeneration reference record item 2, by that analogy, last Generation Edit entry m.
As shown in the above, the present invention has following beneficial effect:
A kind of method embodiments providing picture editor and play up, described method comprises the editing operation instruction often received about same object to be edited, extracts the editing operation data in described editing operation instruction; Be that each editing picture in described object to be edited generates a reference record item according to described editing operation data; Generated reference record item is stored into reference record stack corresponding to each editing picture according to the sequencing generated, by each time to the abstract editing operation data for preserving in the reference record item of reference record stack of the editing operation of picture.Like this, when playing up picture and carrying out preview or preserve, without the need to calling stored picture, but reference record item is called from the reference record stack corresponding to editing picture; The editing operation data in reference record item are utilized to play up successively; Due in the editor and render process of picture, what store and extract is all editing operation data in reference record item, and data committed memory is less than picture, the speed that improve picture editor and play up.
Embodiment two
Fig. 3 is a kind of picture editing method embodiment two of the present invention process flow diagram, compared with embodiment one, in embodiment two, is merged by identical for recording status two reference record items, comprising:
Step 301: carry out pre-service to object to be edited.
Load the picture needing to carry out editing, optimize the size of picture, low-quality picture is rejected in screening, selects arbitrarily at least one pictures as object to be edited from the picture after screening.
Carry out pre-service to object to be edited to comprise: each editing picture in described object to be edited is generated a picture memory mirror as the edit object in editing operation data.
Step 302: when receiving an editing operation instruction about same object to be edited, extracts the editing operation data in described editing operation instruction.
Described editing operation instruction comprises and beautifies operational order and/or water mark operation instruction.
On the one hand, when described editing operation instruction is for beautifying operational order, also comprise after the editing operation data in the described editing operation instruction of described extraction:
Described editing operation data render is utilized to generate an editing memory mirror image, using described editing memory mirror image as the edit object in the editing operation data that next editing operation instruction comprises.
Often receive one and beautify editing operation instruction, extracted editing operation data render can be utilized to generate an editing memory mirror image, be used for improving preview effect in picture editor's process; Using the memory mirror of generation as the edit object in the editing operation data that next editing operation instruction comprises, that is, beautifying editing operation is all carry out on the basis that back beautifies operation, and then can promote the speed of editing operation.
On the other hand: when described editing operation instruction is water mark operation instruction, described editing operation data also comprise:
Edit object identifies, and described edit object mark is used for unique identification edit object.
When adding watermark to each editing picture, and when the watermark that will add has multiple, edit object can be adopted to identify and distinguish each editing operation instruction is the editing operation carried out for which watermark.Edit object mark is the unique identification of watermark, can adopt any one expression in numeral number, alpha code, numeral and alphabetical combination number.
Edit object mark and the destination address one_to_one corresponding of edit object, can obtain the destination address of edit object according to the mark of edit object.
Step 303: be that corresponding editing picture in described object to be edited generates a reference record item according to described editing operation data.
Similar with embodiment one herein, the description of reference example one, repeats no more here.
Step 304: generated reference record item is stored into reference record stack corresponding to described corresponding editing picture according to the sequencing generated.
Similar with embodiment one herein, the description of reference example one, repeats no more here.
Step 305: described editing operation data also comprise recording status, when generated reference record item is identical with the recording status of the reference record item that upper generates, identical for recording status two reference record items are merged, utilize the result merged to replace a upper reference record item generated, and delete the reference record item generated.
Recording status for identifying editing type in described editing operation data, whether edit object identical with editor's general-purpose attribute, when recording status is identical, editing type in editing operation data, edit object are also identical with editor's general-purpose attribute, and just the value of editor's general-purpose attribute is different.
Here conveniently understand, citing is described:
Editing operation data in a jth reference record item of hypotheses creation comprise: editing type changes watermark location offset coordinates, and edit object is watermark 1, and editor's general-purpose attribute is position offset coordinates, and the value of editor's general-purpose attribute is the 2cm that moves right.
Editing operation data in jth+1 reference record item of hypotheses creation comprise: editing type changes watermark location offset coordinates, and edit object is watermark 1, and editor's general-purpose attribute is position offset coordinates, and the value of editor's general-purpose attribute is the 3cm that moves right.
Now, a jth reference record item is identical with the recording status in the editing operation data of jth+1 reference record item, the jth reference record item generated and jth+1 reference record item are merged, result after merging comprises: editing type changes watermark location offset coordinates, edit object is watermark 1, editor's general-purpose attribute is position offset coordinates, and the value of editor's general-purpose attribute is the 5cm that moves right.Utilize the result merged to replace a jth reference record item generated, and delete the reference record item of jth+1 generation.
Just having lifted an example to be here described, is not the unique embodiment of the present invention, also has other situation similar with it, no longer repeats here.
Therefore, reference record item generates, on one side by adjacent and have the reference record item merging of identical recordings state.
Optionally, described method also comprises:
Delete any one or more reference record items in the reference record stack corresponding to each editing picture.
Above-mentioned steps can perform after the arbitrary steps after generation first reference record item, does not limit here.
As shown in the above, embodiment two, compared with embodiment one, also has following beneficial effect:
Because reference record item can while generate, while the adjacent and reference record item that recording status is identical is merged, decrease in picture editor's process, the number of the reference record item stored in the reference record stack corresponding to each editing picture, decreases the consumption to internal memory; And when playing up, because the number of reference record item reduces, the number of times played up also reduces relatively, improves the speed that picture is played up.
Embodiment three
Fig. 4 is embodiment of the method three process flow diagram that a kind of picture of the present invention is played up, and be applied at least one editing picture, described method comprises:
Step 401: call reference record item from the reference record stack corresponding to editing picture.
When at least one the picture editor's process in object to be edited or after editor terminates, can select in object to be edited editing picture, a part of editing picture or all editing picture carry out preview or preservation.In preview or when preserving editing picture, need to call reference record item from the reference record stack corresponding to the editing picture of preview or preservation.
As shown in Figure 2, for editing picture 1, when needs preview or when preserving editing picture 1, from the reference record stack 1 corresponding to editing picture 1, call reference record item.
Step 402: utilize the editing operation data in reference record item to play up successively.
When playing up, according to putting in order of reference record item, the sequencing generated according to reference record item is played up successively.As shown in Figure 2, for editing picture 1, when playing up, first play up according to the editing operation data in reference record item 1, play up according to the editing operation data in reference record item 2 again, the like, finally play up according to the editing operation data in reference record item m.
Described editing operation data comprise editing type, edit object and editor's general-purpose attribute, describedly utilize the editing operation data in reference record item to carry out playing up successively comprising:
According to described editing type determination image processing algorithm;
Utilize described image processing algorithm, according to described editor's general-purpose attribute, described edit object is played up.
After editor terminates, at least one editing picture can be selected to be saved in local client or to upload to the server of exhibiting pictures.
As shown in the above, the present invention has following beneficial effect:
The embodiment of the present invention, by each time to the abstract editing operation data for preserving in the reference record item of reference record stack of the editing operation of picture, in preview with when preserving at least one editing picture, what extract is editing operation data in the reference record item that stores of the reference record stack corresponding to editing picture, data committed memory is less than picture, the speed that improve picture editor and play up.
Embodiment four
Fig. 5 is embodiment of the method four process flow diagram that a kind of picture of the present invention is played up, and compared with embodiment three, in embodiment four, described editing operation data also comprise entry mark, the type of described entry mark for identifying described reference record item; Entry identified before playing up after identical reference record item merges and play up, described method comprises:
Step 501: call reference record item from the reference record stack corresponding to editing picture.
Step 502: merge the reference record item with identical recordings item mark.
The type of entry mark for identifying described reference record item, when the type of reference record item is identical, represent that the editing type of the editing operation data that reference record item comprises is identical, edit object is identical and it is identical to edit general-purpose attribute, just the value of editor's general-purpose attribute is different.
Illustrate, suppose that the editing operation data in reference record item 2 comprise: the anglec of rotation of editing type for a change watermark, edit object is watermark 2, and editor's general-purpose attribute is the anglec of rotation, and the value of editor's general-purpose attribute is to right rotation 30 degree.
Suppose that the editing operation data in reference record item 6 comprise: the anglec of rotation of editing type for a change watermark, edit object is watermark 2, and editor's general-purpose attribute is the anglec of rotation, and the value of editor's general-purpose attribute is to right rotation 10 degree.
Suppose that the editing operation data in reference record item 9 comprise: the anglec of rotation of editing type for a change watermark, edit object is watermark 2, and editor's general-purpose attribute is the anglec of rotation, and the value of editor's general-purpose attribute is to right rotation 20 degree.
Then above-mentioned reference record item 2, reference record item 6 identify identical with the entry of reference record item 9, merge reference record item 2, reference record item 6 and reference record item 9, result after merging is: the anglec of rotation of editing type for a change watermark, edit object is watermark 2, editor's general-purpose attribute is the anglec of rotation, and the value of editor's general-purpose attribute is to right rotation 60 degree.
Just having lifted an example to be here described, is not the unique embodiment of the present invention, also has other situation similar with it, no longer repeats here.
Step 503: utilize the result merged to replace the reference record item coming last, and delete the reference record item that other have identical recordings item mark.
Be described with the example after step 502, the result after merging replaces the editing operation data in reference record item 9, and deletes reference record item 2 and reference record item 6.The result merged is the net result obtained after 3 reference record items are played up successively.
Step 504: utilize the editing operation data in the reference record item after merging to play up successively.
As shown in the above, embodiment four, compared with embodiment three, also has following advantage:
In preview or when preserving, reference record item is called from the reference record stack corresponding to editing picture, merge the reference record item with identical recordings item mark, decrease the number of reference record item, and then when reducing preview or preserve, the number of times played up, reduces the size of committed memory, improves the speed that picture is played up.
Embodiment five
Fig. 6 is device embodiment five structural representation of a kind of picture editor of the present invention, and be and the device corresponding to embodiment one, be applied to object to be edited, described object to be edited comprises at least one editing picture, and described device comprises:
Extraction unit 601, during for receiving an editing operation instruction about same object to be edited, extracts the editing operation data in described editing operation instruction.
Generation unit 602, for being that corresponding editing picture in described object to be edited generates a reference record item according to described editing operation data.
Storage unit 603, for being stored into reference record stack corresponding to each editing picture by generated reference record item according to the sequencing generated.
Embodiment six
Fig. 7 is device embodiment six structural representation of a kind of picture editor of the present invention, and be and the device corresponding to embodiment two, described editing operation data also comprise recording status, and described device comprises:
Pretreatment unit 701, for carrying out pre-service to described object to be edited, described pre-service comprises: the corresponding editing picture in described object to be edited generates a picture memory mirror as the edit object in editing operation data.
Extraction unit 601, for often receiving an editing operation instruction about same object to be edited, extracts the editing operation data in described editing operation instruction.
On the one hand: when editing operation instruction is for beautifying operational order, described device also comprises:
First rendering unit, for utilizing described editing operation data render to generate an editing memory mirror image, using described editing memory mirror image as the edit object in the editing operation data that next editing operation instruction comprises.
On the other hand: when editing operation instruction is water mark operation instruction, described editing operation data also comprise:
Edit object identifies, and described edit object mark is used for unique identification edit object.
Generation unit 602, for being that corresponding editing picture in described object to be edited generates a reference record item according to described editing operation data.
Storage unit 603, for being stored into reference record stack corresponding to described corresponding editing picture by generated reference record item according to the sequencing generated.
First merge cells 702, for work as generated reference record item identical with the recording status of the reference record item that upper generates time, identical for recording status two reference record items are merged.
First replacement unit 703, for utilizing the result of merging to replace a upper reference record item generated, and deletes the reference record item generated.
Optionally, described device also comprises:
Delete cells, for deleting any one or more reference record items in the reference record stack corresponding to each editing picture.
Embodiment seven
Fig. 8 is device embodiment seven structural representation that a kind of picture is played up, and be and the device corresponding to embodiment three, be applied at least one editing picture, described device comprises:
Call unit 801, for calling reference record item from the reference record stack corresponding to editing picture.
Second rendering unit 802, plays up successively for utilizing the editing operation data in reference record item.
Optionally, described second rendering unit 802 comprises:
Algorithm determining unit, for according to described editing type determination image processing algorithm;
Second plays up subelement, for utilizing described image processing algorithm, plays up described edit object according to described editor's general-purpose attribute.
Embodiment eight
Fig. 9 is device embodiment eight structural representation that a kind of picture is played up, and is and the device corresponding to embodiment four, and described editing operation data also comprise entry mark, and described device comprises:
Call unit 801, for calling reference record item from the reference record stack corresponding to editing picture.
Second merge cells 901, for merging the reference record item with identical recordings item mark.
Second replacement unit 902, for utilizing the result of merging to replace the reference record item coming last, and deletes the reference record item that other have identical recordings item mark.
First plays up subelement 903, plays up successively for utilizing the editing operation data in the reference record item after merging.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, 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 (20)
1. a picture editor's method, is characterized in that, is applied to object to be edited, and described object to be edited comprises at least one editing picture, and described method comprises:
When receiving an editing operation instruction about same object to be edited, extract the editing operation data in described editing operation instruction;
Be that corresponding editing picture in described object to be edited generates a reference record item according to described editing operation data;
Generated reference record item is stored into reference record stack corresponding to described corresponding editing picture according to the sequencing generated.
2. method according to claim 1, is characterized in that,
Described editing operation data also comprise recording status;
Then described generated reference record item is stored into corresponding to described corresponding editing picture reference record stack according to the sequencing generated after also comprise:
When generated reference record item is identical with the recording status of the reference record item that upper generates, identical for recording status two reference record items are merged;
Utilize the result merged to replace a upper reference record item generated, and delete the reference record item generated.
3. method according to claim 1, is characterized in that, described editing operation instruction comprises:
Beautify operational order and/or water mark operation instruction.
4. method according to claim 3, is characterized in that,
When editing operation instruction is for beautifying operational order, also comprise after the editing operation data in the described editing operation instruction of described extraction:
Described editing operation data render is utilized to generate an editing memory mirror image, using described editing memory mirror image as the edit object in the editing operation data that next editing operation instruction comprises.
5. method according to claim 3, is characterized in that,
When editing operation instruction is water mark operation instruction, described editing operation data also comprise:
Edit object identifies, and described edit object mark is used for unique identification edit object.
6. the method according to claim 1-5 any one, is characterized in that, described method also comprises:
Delete any one or more reference record items in the reference record stack corresponding to described corresponding editing picture.
7. the method according to claim 1-5 any one, is characterized in that, also comprises before described reception first editing operation instruction:
Carry out pre-service to described object to be edited, described pre-service comprises: the corresponding editing picture in described object to be edited is generated a picture memory mirror as the edit object in editing operation data.
8. the method played up of picture, it is characterized in that, be applied at least one editing picture, described method comprises:
Reference record item is called from the reference record stack corresponding to editing picture;
The editing operation data in reference record item are utilized to play up successively.
9. method according to claim 8, is characterized in that,
Described editing operation data also comprise entry mark, the type of described entry mark for identifying described reference record item;
Also comprise after calling reference record item then from the reference record stack corresponding to editing picture:
Merge the reference record item with identical recordings item mark;
Utilize the result merged to replace the reference record item coming last, and delete the reference record item that other have identical recordings item mark;
Then describedly the editing operation data in reference record item are utilized to carry out playing up successively comprising:
The editing operation data in the reference record item after merging are utilized to play up successively.
10. method according to claim 8, is characterized in that, described editing operation data comprise editing type, edit object and editor's general-purpose attribute, describedly utilizes the editing operation data in reference record item to carry out playing up successively comprising:
According to described editing type determination image processing algorithm;
Utilize described image processing algorithm, according to described editor's general-purpose attribute, described edit object is played up.
The device of 11. 1 kinds of picture editors, is characterized in that, is applied to object to be edited, and described object to be edited comprises at least one editing picture, and described device comprises:
Extraction unit, during for receiving an editing operation instruction about same object to be edited, extracts the editing operation data in described editing operation instruction;
Generation unit, for being that corresponding editing picture in described object to be edited generates a reference record item according to described editing operation data;
Storage unit, for being stored into reference record stack corresponding to described corresponding editing picture by generated reference record item according to the sequencing generated.
12. devices according to claim 11, is characterized in that,
Described editing operation data also comprise recording status;
Then described device also comprises:
First merge cells, for work as generated reference record item identical with the recording status of the reference record item that upper generates time, identical for recording status two reference record items are merged;
First replacement unit, for utilizing the result of merging to replace a upper reference record item generated, and deletes the reference record item generated.
13. devices according to claim 11, is characterized in that, described editing operation instruction comprises:
Beautify operational order and/or water mark operation instruction.
14. devices according to claim 13, is characterized in that,
When editing operation instruction is for beautifying operational order, described device also comprises:
First rendering unit, for utilizing described editing operation data render to generate an editing memory mirror image, using described editing memory mirror image as the edit object in the editing operation data that next editing operation instruction comprises.
15. devices according to claim 13, is characterized in that,
When editing operation instruction is water mark operation instruction, described editing operation data also comprise:
Edit object identifies, and described edit object mark is used for unique identification edit object.
16. devices according to claim 11-15 any one, it is characterized in that, described device also comprises:
Delete cells, for deleting any one or more reference record items in the reference record stack corresponding to described corresponding editing picture.
17. devices according to claim 11-15 any one, it is characterized in that, described device also comprises:
Pretreatment unit, for carrying out pre-service to described object to be edited, described pre-service comprises: the corresponding editing picture in described object to be edited generates a picture memory mirror as the edit object in editing operation data.
The device that 18. 1 kinds of pictures are played up, is characterized in that, is applied at least one editing picture, and described device comprises:
Call unit, for calling reference record item from the reference record stack corresponding to editing picture;
Second rendering unit, plays up successively for utilizing the editing operation data in reference record item.
19. devices according to claim 18, is characterized in that,
Described editing operation data also comprise entry mark, the type of described entry mark for identifying described reference record item;
Then described device also comprises:
Second merge cells, for merging the reference record item with identical recordings item mark;
Second replacement unit, for utilizing the result of merging to replace the reference record item coming last, and deletes the reference record item that other have identical recordings item mark;
Then described second rendering unit comprises:
First plays up subelement, plays up successively for utilizing the editing operation data in the reference record item after merging.
20. devices according to claim 18, is characterized in that, described editing operation data comprise editing type, edit object and editor's general-purpose attribute, and described second rendering unit comprises:
Algorithm determining unit, for according to described editing type determination image processing algorithm;
Second plays up subelement, for utilizing described image processing algorithm, plays up described edit object according to described editor's general-purpose attribute.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310228876.7A CN104240175A (en) | 2013-06-08 | 2013-06-08 | Image editing and rendering method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310228876.7A CN104240175A (en) | 2013-06-08 | 2013-06-08 | Image editing and rendering method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104240175A true CN104240175A (en) | 2014-12-24 |
Family
ID=52228187
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310228876.7A Pending CN104240175A (en) | 2013-06-08 | 2013-06-08 | Image editing and rendering method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104240175A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103440304A (en) * | 2013-08-22 | 2013-12-11 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for storing picture |
CN103745480A (en) * | 2014-01-26 | 2014-04-23 | 广州博冠信息科技有限公司 | Picture rendering method and device |
CN104580932A (en) * | 2015-01-29 | 2015-04-29 | 广东欧珀移动通信有限公司 | Image information modification method and device |
CN105787871A (en) * | 2016-03-24 | 2016-07-20 | 广州酷狗计算机科技有限公司 | Method and device for synthesizing pictures |
CN106296785A (en) * | 2016-08-09 | 2017-01-04 | 腾讯科技(深圳)有限公司 | A kind of picture rendering intent and picture rendering apparatus |
CN106327429A (en) * | 2016-10-24 | 2017-01-11 | 腾讯科技(深圳)有限公司 | Picture synthesis method and device and terminal equipment |
CN106909681A (en) * | 2017-03-03 | 2017-06-30 | 努比亚技术有限公司 | A kind of information processing method and its device |
CN106993093A (en) * | 2017-03-30 | 2017-07-28 | 努比亚技术有限公司 | A kind of image processing apparatus and method |
CN108665507A (en) * | 2017-03-31 | 2018-10-16 | 珠海金山办公软件有限公司 | A kind of picture Transparent color setting method and device |
CN111049989A (en) * | 2019-12-26 | 2020-04-21 | 维沃移动通信有限公司 | Image display method and electronic equipment |
CN111104030A (en) * | 2019-12-06 | 2020-05-05 | 稿定(厦门)科技有限公司 | Picture batch editing method based on mobile terminal |
CN111428210A (en) * | 2019-01-10 | 2020-07-17 | 北京金山办公软件股份有限公司 | Method and device for editing watermark and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6343160B1 (en) * | 1997-08-29 | 2002-01-29 | Canon Kabushiki Kaisha | Utilization of caching in image manipulation and creation |
US20070088729A1 (en) * | 2005-10-14 | 2007-04-19 | International Business Machines Corporation | Flexible history manager for manipulating data and user actions |
CN101079844A (en) * | 2007-05-16 | 2007-11-28 | 腾讯科技(深圳)有限公司 | A method, system and device for editing IM picture cutting |
CN101110886A (en) * | 2006-07-21 | 2008-01-23 | 鸿富锦精密工业(深圳)有限公司 | Method and apparatus for processing, saving and displaying digital photograph |
US20120230609A1 (en) * | 2004-09-24 | 2012-09-13 | Nikon Corporation | Image processing device, method and program |
-
2013
- 2013-06-08 CN CN201310228876.7A patent/CN104240175A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6343160B1 (en) * | 1997-08-29 | 2002-01-29 | Canon Kabushiki Kaisha | Utilization of caching in image manipulation and creation |
US20120230609A1 (en) * | 2004-09-24 | 2012-09-13 | Nikon Corporation | Image processing device, method and program |
US20070088729A1 (en) * | 2005-10-14 | 2007-04-19 | International Business Machines Corporation | Flexible history manager for manipulating data and user actions |
CN101110886A (en) * | 2006-07-21 | 2008-01-23 | 鸿富锦精密工业(深圳)有限公司 | Method and apparatus for processing, saving and displaying digital photograph |
CN101079844A (en) * | 2007-05-16 | 2007-11-28 | 腾讯科技(深圳)有限公司 | A method, system and device for editing IM picture cutting |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103440304B (en) * | 2013-08-22 | 2017-04-05 | 宇龙计算机通信科技(深圳)有限公司 | A kind of picture storage method and storage device |
CN103440304A (en) * | 2013-08-22 | 2013-12-11 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for storing picture |
CN103745480A (en) * | 2014-01-26 | 2014-04-23 | 广州博冠信息科技有限公司 | Picture rendering method and device |
CN103745480B (en) * | 2014-01-26 | 2017-02-15 | 广州博冠信息科技有限公司 | Picture rendering method and device |
CN104580932A (en) * | 2015-01-29 | 2015-04-29 | 广东欧珀移动通信有限公司 | Image information modification method and device |
CN105787871A (en) * | 2016-03-24 | 2016-07-20 | 广州酷狗计算机科技有限公司 | Method and device for synthesizing pictures |
CN106296785B (en) * | 2016-08-09 | 2017-12-15 | 腾讯科技(深圳)有限公司 | A kind of picture rendering intent and picture rendering apparatus |
CN106296785A (en) * | 2016-08-09 | 2017-01-04 | 腾讯科技(深圳)有限公司 | A kind of picture rendering intent and picture rendering apparatus |
CN106327429A (en) * | 2016-10-24 | 2017-01-11 | 腾讯科技(深圳)有限公司 | Picture synthesis method and device and terminal equipment |
CN106909681A (en) * | 2017-03-03 | 2017-06-30 | 努比亚技术有限公司 | A kind of information processing method and its device |
CN106993093A (en) * | 2017-03-30 | 2017-07-28 | 努比亚技术有限公司 | A kind of image processing apparatus and method |
CN108665507A (en) * | 2017-03-31 | 2018-10-16 | 珠海金山办公软件有限公司 | A kind of picture Transparent color setting method and device |
CN111428210A (en) * | 2019-01-10 | 2020-07-17 | 北京金山办公软件股份有限公司 | Method and device for editing watermark and electronic equipment |
CN111428210B (en) * | 2019-01-10 | 2024-03-26 | 北京金山办公软件股份有限公司 | Method and device for editing watermark and electronic equipment |
CN111104030A (en) * | 2019-12-06 | 2020-05-05 | 稿定(厦门)科技有限公司 | Picture batch editing method based on mobile terminal |
CN111049989A (en) * | 2019-12-26 | 2020-04-21 | 维沃移动通信有限公司 | Image display method and electronic equipment |
CN111049989B (en) * | 2019-12-26 | 2021-04-06 | 维沃移动通信有限公司 | Image display method and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104240175A (en) | Image editing and rendering method and device | |
CN106852185B (en) | Parallelly compressed encoder based on dictionary | |
CN103310475B (en) | animation playing method and device | |
CN104850388B (en) | web page rendering method and device | |
JP2020187736A (en) | Learning data generation method for classifier learning having regional features, and system thereof | |
CN103440304A (en) | Method and device for storing picture | |
US9165603B2 (en) | Method and apparatus for grouping video tracks in a video editing timeline | |
CN103455475A (en) | Typesetting method, equipment and system | |
CN106681698A (en) | Dynamic list generating method and device | |
CN107247722A (en) | File scanning method and device and intelligent terminal | |
CN106055294A (en) | Layer composition optimization method and apparatus | |
US11361189B2 (en) | Image generation method and computing device | |
CN104134033B (en) | A kind of method and device for recognizing user equipment | |
US20180342038A1 (en) | Systems and methods for rendering a secure document with a text selection capability | |
CN106126115A (en) | A kind of method and device of the disk of EVM(extended virtual machine) | |
CN101127125A (en) | Image rendering method and system | |
CN110827386A (en) | Rendering layer object distribution method and system for Maya | |
CN106504316A (en) | The method and apparatus of three-dimensional data process | |
WO2018208412A1 (en) | Detection of caption elements in documents | |
CN116167910B (en) | Text editing method, text editing device, computer equipment and computer readable storage medium | |
EP3341917A1 (en) | Smart flip operation for grouped objects | |
CN106569986A (en) | Character string replacement method and device | |
US20140351298A1 (en) | Method and apparatus for distributed processing of file | |
CN112765506B (en) | Page text content display method, device, equipment and storage medium | |
CN109286842A (en) | A kind of method based on graphic programming interface loop play background, electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20141224 |
|
RJ01 | Rejection of invention patent application after publication |