CN103903292B - Method and system for realizing head portrait editing interface - Google Patents

Method and system for realizing head portrait editing interface Download PDF

Info

Publication number
CN103903292B
CN103903292B CN201210581816.9A CN201210581816A CN103903292B CN 103903292 B CN103903292 B CN 103903292B CN 201210581816 A CN201210581816 A CN 201210581816A CN 103903292 B CN103903292 B CN 103903292B
Authority
CN
China
Prior art keywords
picture
head portrait
memory bitmap
area
edited
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210581816.9A
Other languages
Chinese (zh)
Other versions
CN103903292A (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.)
Beijing Feinno Communication Technology Co Ltd
Original Assignee
Beijing Feinno Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Feinno Communication Technology Co Ltd filed Critical Beijing Feinno Communication Technology Co Ltd
Priority to CN201210581816.9A priority Critical patent/CN103903292B/en
Publication of CN103903292A publication Critical patent/CN103903292A/en
Application granted granted Critical
Publication of CN103903292B publication Critical patent/CN103903292B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The invention discloses a method and system for realizing a head portrait editing interface. The method comprises for a selected picture, zooming the selected picture according to the size of an edit view to generate a picture to be edit; establishing a first memory bitmap and loading the picture to be edit to the first memory bitmap; generating a semitransparent mask layer which is of the same size with the edit view and of which the portion corresponding to a cutting area in the edit view is hollowed out; establishing a second memory bitmap, and loading the mask layer to the second memory bitmap; superposing the second memory bitmap on the first memory bitmap; drawing borders of the cutting area in the first memory bitmap, and drawing editing anchor points on the borders; drawing the first memory bitmap in which the borders and the editing anchor points are drawn into the edit view for displaying; and zooming the portion corresponding to the cutting area in the picture to be edit according to the size of a head portrait display area, and adding the zoomed portion to the head portrait display area. According to the technical scheme provided in the invention, the technical problem of low process efficiency of the conventional head portrait editing interface can be solved.

Description

A kind of method and system for realizing head portrait editing interface
Technical field
The present invention relates to computer realm, more particularly to a kind of method and system for realizing head portrait editing interface.
Background technology
The function of self-defined head portrait, existing head portrait editing side are both provided in current major part instant messaging IM applications Method typically chooses a pictures in local picture, and the picture to being chosen carries out cutting, cuts out selected picture User head portrait of the part as IM application programs.
Due to during cutting, needing to generate an editing view that cutting is carried out to selected picture, existing skill In art realize include the editing view head portrait editing interface scheme in presence realize head portrait editing interface process efficiency it is low, Operate slack problem.
The content of the invention
The invention provides a kind of method and system for realizing head portrait editing interface, the technical scheme that the present invention is provided can Solve existing head portrait edit methods and there are problems that the operational efficiency of editing view is low, it is slack to operate.
To reach above-mentioned purpose, the technical scheme is that what is be achieved in that:
The invention discloses a kind of method for realizing head portrait editing interface, a kind of method for realizing head portrait editing interface, its It is characterised by, the head portrait editing interface includes editing view and head portrait show area, the editing view includes Crop Area, The method includes:
For the picture for selecting, by the editing view size scaling picture, picture to be edited is generated, create the first memory bits Figure, the picture to be edited is loaded in first memory bitmap;
Translucent mask layer is generated, the mask layer size is equivalently-sized with editing view, and in the mask layer Corresponding to Crop Area in editing view part by hollow out, create the second memory bitmap, the mask layer is loaded into into described the In two memory bitmaps;
Second memory bitmap is added to first memory bitmap, in first memory bitmap Crop Area is drawn Frame, and on the frame of the Crop Area draw editor anchor point;
To draw has frame and first memory bitmap of editor's anchor point to be plotted in editing view and show;
Part in picture to be edited corresponding to Crop Area is shown by head portrait is added to after the size scaling of head portrait show area Qu Zhong.
Wherein, the translucent mask layer of the generation is specifically included:
Create and the equivalently-sized section object of editing view, will be with sanction in the editing view in the section object Cut the corresponding part hollow out in area;Add translucent shade in the section object, generate translucent mask layer.
Wherein, described generation also includes after picture to be edited:
Replicate corresponding to the part of Crop Area in picture to be edited, obtain cutting picture, figure is carried out to the cutting picture As processing, the 3rd memory bitmap is created, the cutting picture Jing after image procossing is loaded in the 3rd memory bitmap;
Described second memory bitmap is added to after first memory bitmap also includes:
3rd memory bitmap is added in the first memory bitmap the position corresponding to Crop Area;
It is described by picture to be edited corresponding to Crop Area part by being added to head portrait after the size scaling of head portrait show area Specifically include in show area:
By the cutting picture Jing after image procossing by being added in head portrait show area after the size scaling of head portrait show area.
Wherein, described image processes one or more included in following image procossing:
The process of black and white filter, the process of halation filter, the process of water droplet filter and hue adjustment are processed.
Wherein, it is described also to include after the picture to be edited is loaded in first memory bitmap:
The word and/or Line Chart specified is drawn in the first memory bitmap;
It is described by picture to be edited corresponding to Crop Area part by being added to head portrait after the size scaling of head portrait show area Specifically include in show area:
The word and/or Line Chart of drafting are plotted in picture to be edited by fused algorithm;
By in the picture to be edited corresponding to Crop Area part by being added to head portrait exhibition after the size scaling of head portrait show area In showing area.
Wherein, the method also includes:
After the instruction of editor Crop Area is received, instructed according to the editor Crop Area and new Crop Area is set, it is new with this Crop Area as Crop Area in the editing view, perform the first memory bitmap of the establishment, the picture to be edited is added The step being downloaded in first memory bitmap and subsequent step.
The invention also discloses a kind of system for realizing head portrait editing interface, the head portrait editing interface includes that editor regards Figure and head portrait show area, the editing view includes Crop Area, and the system includes:Artwork layer generation module, mask layer are generated Module, laminating module, display module and head portrait display module;
The artwork layer generation module, for for the picture for selecting, by the editing view size scaling picture, generation to be treated Editing picture, creates the first memory bitmap, the picture to be edited is loaded in first memory bitmap, by described first Memory bitmap sends the laminating module to;
The mask layer generation module, for generating translucent mask layer, the mask layer size and editing view chi It is very little identical, and the part of Crop Area in editing view is corresponded in the mask layer by hollow out, the second memory bitmap is created, will The mask layer is loaded in second memory bitmap, sends second memory bitmap to the laminating module;
The laminating module, for second memory bitmap to be added to first memory bitmap, at this in first The frame that Crop Area is drawn in bitmap is deposited, and editor's anchor point is drawn on the frame of the Crop Area, drafting is had into frame and editor First memory bitmap of anchor point sends the display module to;
The display module, has frame and first memory bitmap of editor's anchor point to be plotted to editing view for drawing In and show;
The head portrait display module, for the part in picture to be edited corresponding to Crop Area to be pressed into head portrait show area size In being added to head portrait show area after scaling.
Wherein, the mask layer generation module, for creating and the equivalently-sized section object of editing view, in the area Will part hollow out corresponding with Crop Area in the editing view in field object;Add translucent screening in the section object Cover, generates translucent mask layer.
Wherein, the system also includes:Cutting image generating module,
The cutting image generating module, for replicating picture to be edited in corresponding to Crop Area part, obtain cutting Picture, image procossing is carried out to the cutting picture, creates the 3rd memory bitmap, and the cutting picture Jing after image procossing is loaded To in the 3rd memory bitmap, the 3rd memory bitmap is sent to the laminating module, by the sanction Jing after image procossing Cut picture and send the head portrait display module to;
The laminating module, is additionally operable to that the 3rd memory bitmap is added in the first memory bitmap corresponding to Crop Area Position;
The head portrait display module, be additionally operable to by the cutting picture Jing after image procossing by head portrait show area size scaling after In being added to head portrait show area.
Wherein, the artwork layer generation module, is additionally operable to be drawn in the first memory bitmap the word specified and/or linear Figure;
The display module, for the word and/or Line Chart of drafting to be plotted to into picture to be edited by fused algorithm In;By in the picture to be edited corresponding to Crop Area part by being added to head portrait show area after the size scaling of head portrait show area In.
In sum, the invention provides a kind of method and system for realizing head portrait editing interface, the skill that the present invention is provided Art scheme by creating multiple memory bitmaps in internal memory, create multiple memory bitmaps in process respectively picture to be edited, Mask layer, the frame of Crop Area and anchor point.Due to processing in different memory bitmaps for picture to be edited and mask layer, Therefore when head portrait editing interface is realized, head portrait editing interface is realized by the pretreatment in internal memory, so that whole head As editing interface realize process smooth, solve realize in prior art head portrait editing interface process efficiency it is low, operation not Smooth problem.
Description of the drawings
Fig. 1 is a kind of method flow diagram for realizing head portrait editing interface in the present invention;
Fig. 2 is the flow chart of the method for realizing head portrait editing interface of one embodiment of the invention;
Fig. 3 is the flow chart of the method for realizing head portrait editing interface of a specific embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of each figure layer of head portrait editing interface in the present invention;
Fig. 5 is a kind of schematic diagram of editing view in head portrait editing interface in the present invention;
Fig. 6 is the structure chart of the head portrait editing interface system of one embodiment of the invention;
Fig. 7 is the structure chart of the head portrait editing interface system of another embodiment of the present invention;
Fig. 8 is the structure chart of the head portrait editing interface system of another embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Reach above-mentioned purpose the technical solution of the utility model to be realized in:
In the method for realizing head portrait editing interface that the present invention is provided, head portrait editing interface includes editing view and head As show area, editing view includes Crop Area;Fig. 1 is a kind of method flow diagram for realizing head portrait editing interface in the present invention; As shown in figure 1, the method is specifically included:
Step 101, for the picture for selecting, by the editing view size scaling picture, generates picture to be edited, creates the One memory bitmap, the picture to be edited is loaded in first memory bitmap.
Step 102, generates translucent mask layer, and the mask layer size is equivalently-sized with editing view, and shade The part of Crop Area in editing view is corresponded in layer by hollow out, the second memory bitmap is created, mask layer is loaded in second In depositing bitmap.
Step 103, the second memory bitmap is added to the first memory bitmap, and in first memory bitmap Crop Area is drawn Frame, and on the frame of the Crop Area draw editor anchor point.
Step 104, will draw has frame and first memory bitmap of editor's anchor point to be plotted in editing view and show.
Step 105, by picture to be edited corresponding to Crop Area part by being added to after the size scaling of head portrait show area In head portrait show area.
In the specific implementation of the present invention, 102 the step of shown in Fig. 1 in the translucent mask layer of generation it is concrete Including:Create and the equivalently-sized section object of editing view, will be with Crop Area pair in the editing view in section object The part hollow out answered;Add translucent shade in section object, generate translucent mask layer.
The Integral Thought of the present invention is, by picture to be edited, mask layer, the frame of Crop Area and editor's anchor point etc. in internal memory Middle layering loading, calculating are processed, then the editing view for being plotted to window of property again.
In an embodiment of the present invention, treated head portrait picture is presented in head portrait show area.Fig. 2 is this The flow chart of the method for realizing head portrait editing interface in a kind of bright middle embodiment.Fig. 4 is a kind of head portrait editor circle in the present invention The schematic diagram of each figure layer in face;Fig. 5 is a kind of schematic diagram of editing view in head portrait editing interface in the present invention.
Step 201, for the picture for selecting, by the editing view size scaling picture, generates picture to be edited.
Step 202, creates the first memory bitmap, and picture to be edited is loaded in the first memory bitmap.As shown in figure 4, Picture to be edited 401 is loaded in first memory bitmap, corresponding to artwork layer.
Step 203, replicates corresponding to the part of Crop Area in picture to be edited, cutting picture is obtained, to the cutting picture Carry out image procossing.
In step 203, described image process includes that filter processes color colourity process with picture etc., specifically can wrap Include one or more in following image procossing:The process of black and white filter, the process of halation filter, the process of water droplet filter and tone Adjustment is processed.In the specific implementation of the present invention, also including other image procossing modes, here is not repeated one by one.
Step 204, creates the 3rd memory bitmap, and the cutting picture Jing after image procossing is loaded into into the 3rd memory bitmap In.
Step 205, generates translucent mask layer.
In step 205, the mask layer size for being generated is equivalently-sized with editing view, and corresponding to volume in mask layer The part of Crop Area in view is collected by hollow out.Wherein, the concrete mode of the translucent mask layer of generation can be:Create and editor View dimensions identical section object, will part corresponding with Crop Area in editing view hollow out in the section object;At this Add translucent shade in section object, generate translucent mask layer.Wherein, the mask layer for being generated is that black is translucent. The purpose for arranging the mask layer is so that the part in picture to be edited as head portrait more projects.
Step 206, creates the second memory bitmap, and mask layer is loaded in the second memory bitmap.As shown in figure 4, this Mask layer 402 is loaded in two memory bitmaps, part 403 corresponding with Crop Area in editing view, should by hollow out in mask layer 402 Mask layer 402 is that black is translucent.
Step 207, the second memory bitmap is added to first memory bitmap, and the 3rd memory bitmap is added to into first Corresponding to the position of Crop Area in memory bitmap.
The 3rd memory bitmap is added in the first memory bitmap the position corresponding to Crop Area in step 207, so Image covers the image of Crop Area in the first memory bitmap in 3rd memory bitmap, hence in so that in the Crop Area of editing view The image of display is identical with the image shown in head portrait show area.Superposition in the embodiment of the present invention refers both to cover, and for example will Second memory bitmap is added to the first memory bitmap as using the second memory bitmap the first memory bitmap of covering, by the 3rd internal memory The bitmap position corresponding to Crop Area that is added in the first memory bitmap as uses the 3rd memory bitmap to cover the first memory bits Corresponding to the position of Crop Area in figure.
Step 208, draws the frame of Crop Area in first memory bitmap, and volume is drawn on the frame of the Crop Area Collect anchor point.
Step 209, will draw has frame and first memory bitmap of editor's anchor point to be plotted in editing view and show.
As shown in figure 5, frame 404 is drawn in the part 403 in the first memory bitmap in the Crop Area for corresponding to, and in frame Draw editor's anchor point 405.
Step 210, the cutting picture Jing after image procossing is shown by head portrait is added to after the size scaling of head portrait show area Qu Zhong.
In other specific embodiments of the present invention, except needing for carrying out at image as the picture of head portrait Reason, it is also possible to need to increase word, the operation of linear graph in selected picture to be edited.Below with picture to be edited As a example by increasing word, method in the present embodiment is illustrated.As shown in figure 3, to realize head portrait editing interface in the present embodiment Method flow chart.
Step 301, for the picture for selecting, by the editing view size scaling picture, generates picture to be edited.
Step 302, creates the first memory bitmap, and picture to be edited is loaded in the first memory bitmap.
Step 303, draws the word specified in the first memory bitmap.In step 303, it is also possible to increase Line Chart, Its subsequent operation is identical with word is increased.Increasedd word, Line Chart are directly drawn in picture to be edited 401.
Step 304, generates translucent mask layer.
The mask layer size for being generated is equivalently-sized with editing view, and corresponding to cutting in editing view in mask layer The part in area is by hollow out.Wherein, the concrete mode of the translucent mask layer of generation can be:Create equivalently-sized with editing view Section object, will part corresponding with Crop Area in editing view hollow out in the section object;Add in the section object Plus translucent shade, generate translucent mask layer.Wherein, the mask layer for being generated is that black is translucent.The mask layer is set Purpose be so that the part in picture to be edited as head portrait more projects.
Step 305, creates the second memory bitmap, and mask layer is loaded in the second memory bitmap.
Step 306, the second memory bitmap is added to the first memory bitmap.
Step 307, draws the frame of Crop Area in first memory bitmap, and volume is drawn on the frame of the Crop Area Collect anchor point.
Step 308, will draw has frame and first memory bitmap of editor's anchor point to be plotted in editing view and show.
Step 309, by fuse algorithm by draw Word-Drawing in picture to be edited.
Step 310, the part in the picture to be edited corresponding to Crop Area is pressed and add after the size scaling of head portrait show area To in head portrait show area.
In another embodiment of the invention, can enter edlin to Crop Area, for example change clipping region size or Person position.
Specifically, after the instruction of editor Crop Area is received, new Crop Area is arranged according to the instruction of editor Crop Area, with this New Crop Area is used as Crop Area in editing view.Then the first memory bitmap is created in execution step 101, will be described to be edited Picture is loaded into the step in first memory bitmap and subsequent step 102 to 105.Wherein, it is shown to receive editor's cutting The instruction in area can be with specifically, response mouse event, receiving the size by mouse drag editor anchor point change Crop Area Or the instruction of mobile Crop Area.
In the embodiment shown in Figure 2, the instruction of editor Crop Area is received, is reset according to the editor Crop Area instruction New Crop Area, using the new Crop Area as the picture to be edited in step 201 in Crop Area, then execution step 202 To step 210.
In the embodiment shown in fig. 3, the instruction of editor Crop Area is received, is reset according to the editor Crop Area instruction New Crop Area, using the new Crop Area as the picture to be edited in step 301 in Crop Area, then execution step 302 To step 310.
It is convenient that the editing view that the technical scheme provided in the present invention is provided is provided for follow-up feature extension.At this By anticipating the view of each layering, i.e. layered shaping picture to be edited, mask layer and and cutting in internal memory in invention The cutting picture of the corresponding Jing image procossings in area, is then overlapped the figure layer after each layered shaping.Due to entirely realizing head As the flow process of editing interface is processed all in internal memory, so process smooth flow is entirely realized, and the processing mode being layered is given The addition of follow-up New function, extension are allowed some leeway.Wherein, follow-up New function includes:Addition word, addition Line Chart, addition Special effect of picture etc..
The invention also discloses a kind of system for realizing head portrait editing interface, the head portrait editing interface includes that editor regards Figure and head portrait show area, the editing view includes Crop Area.
Fig. 6 is the structure chart of the head portrait editing interface system of one embodiment of the invention.The system includes:Artwork layer is generated Module 601, mask layer generation module 602, laminating module 603, display module 604 and head portrait display module 605.
Artwork layer generation module 601, for the picture of selection, by the editing view size scaling picture, generates to be edited Picture, creates the first memory bitmap, and picture to be edited is loaded in the first memory bitmap, the first memory bitmap is sent to folded Plus module 603.
Mask layer generation module 602, for generating translucent mask layer, mask layer size and editing view size phase Together, and in mask layer corresponding to Crop Area in editing view part by hollow out, create the second memory bitmap, by mask layer plus In being downloaded to the second memory bitmap, the second memory bitmap is sent to laminating module 603.
Laminating module 603, for the second memory bitmap to be added to the first memory bitmap, paints in first memory bitmap The frame of Crop Area processed, and editor's anchor point is drawn on the frame of the Crop Area, by draw have frame and editor's anchor point this One memory bitmap sends display module 604 to.
Display module 604, has frame and first memory bitmap of editor's anchor point to be plotted to editing view for drawing In and show.
Head portrait display module 605, for the part in picture to be edited corresponding to Crop Area to be pressed into head portrait show area size In being added to head portrait show area after scaling.
In said system, mask layer generation module 602, for creating and the equivalently-sized section object of editing view, Will part corresponding with Crop Area in editing view hollow out in section object;Add translucent shade in section object, it is raw Into translucent mask layer.
In one embodiment of this invention, as shown in fig. 7, system is except including artwork layer generation module 601, mask layer life It is outer also including cutting image generating module 606 into module 602, laminating module 603, display module 604, head portrait display module 605,
Cutting image generating module 606, for replicating picture to be edited in corresponding to Crop Area part, obtain cutting figure Piece, image procossing is carried out to cutting picture, creates the 3rd memory bitmap, and the cutting picture Jing after image procossing is loaded into into the 3rd In memory bitmap, the 3rd memory bitmap is sent to the laminating module 603, by the cutting figure Jing after image procossing Piece sends the head portrait display module 605 to.
Laminating module 603, is additionally operable to the position that the 3rd memory bitmap is added in the first memory bitmap corresponding to Crop Area Put.
The position that laminating module 603 is added to the 3rd memory bitmap in the first memory bitmap corresponding to Crop Area, so Image covers the image of Crop Area in the first memory bitmap in 3rd memory bitmap, hence in so that in the Crop Area of editing view The image of display is identical with the image shown in head portrait show area.
Head portrait display module 605, be additionally operable to by the cutting picture Jing after image procossing by head portrait show area size scaling after In being added to head portrait show area.
In one embodiment of this invention, artwork layer generation module 601, is additionally operable to be drawn in the first memory bitmap and specifies Word and/or Line Chart.
Display module 604, for the word and/or Line Chart of drafting to be plotted to into picture to be edited by fused algorithm In;By in the picture to be edited corresponding to Crop Area part by being added to head portrait show area after the size scaling of head portrait show area In.
In said system, described image process includes one or more in following image procossing:At black and white filter Reason, the process of halation filter, the process of water droplet filter and hue adjustment are processed.
In one embodiment of this invention, as shown in figure 8, system is except including artwork layer generation module 601, mask layer life It is outer also including command reception module 607 into module 602, laminating module 603, display module 604, head portrait display module 605.
The command reception module 607, for receiving the instruction of editor Crop Area, indicates artwork layer generation module 601 according to volume Collect Crop Area instruction and new Crop Area is set, with the new Crop Area as Crop Area in the editing view.
Mask layer generation module 602, laminating module 603 in the system, display module 604, head portrait display module 605, Perform again and realize that head portrait editing interface is operated.
In sum, the invention provides a kind of method and system for realizing head portrait editing interface, the skill that the present invention is provided Art scheme by creating multiple memory bitmaps in internal memory, create multiple memory bitmaps in process respectively picture to be edited, Mask layer, the frame of Crop Area and anchor point, are follow-up image procossing or addition word, the function of linear graph to be carried out to head portrait Extension provides basis;Also, it is overlapped after operation due to each is processed by different level into the memory bitmap for obtaining in internal memory, In being plotted to view editing interface so that operation more smooths flow process, it is to avoid the operation effect easily existed during editing view occur Rate is low, operate slack problem.
Presently preferred embodiments of the present invention is the foregoing is only, protection scope of the present invention is not intended to limit.It is all Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention It is interior.

Claims (10)

1. a kind of method for realizing head portrait editing interface, it is characterised in that the head portrait editing interface include editing view and Head portrait show area, the editing view includes Crop Area;By picture to be edited, mask layer, the frame of Crop Area and editor's anchor Point layering loading, calculating in internal memory are processed, and then again property is plotted to the editing view;The method includes:
Step 1, for the picture for selecting, by the editing view size scaling picture, generate the picture to be edited, create first Memory bitmap, the picture to be edited is loaded in first memory bitmap;
Step 2, the translucent mask layer of generation, the mask layer size is equivalently-sized with editing view, and the screening The part of Crop Area in editing view is corresponded in cap layer by hollow out, the second memory bitmap is created, the mask layer is loaded into In second memory bitmap;
Step 3, be added to second memory bitmap first memory bitmap, draws described in first memory bitmap The frame of Crop Area, and editor's anchor point is drawn on the frame of the Crop Area;
Step 4, first memory bitmap that drafting is had frame and anchor point is edited are plotted in editing view and show;
Step 5, by picture to be edited corresponding to Crop Area part by being added to head portrait exhibition after the size scaling of head portrait show area In showing area.
2. method according to claim 1, it is characterised in that
It is described to generate translucent mask layer and specifically include:
Create and the equivalently-sized section object of editing view, will be with Crop Area in the editing view in the section object Corresponding part hollow out;Add translucent shade in the section object, generate translucent mask layer.
3. method according to claim 1, it is characterised in that
Described generation also includes after picture to be edited:
Replicate corresponding to the part of Crop Area in picture to be edited, obtain cutting picture, the cutting picture is carried out at image Reason, creates the 3rd memory bitmap, and the cutting picture Jing after image procossing is loaded in the 3rd memory bitmap;
Described second memory bitmap is added to after first memory bitmap also includes:
3rd memory bitmap is added in the first memory bitmap the position corresponding to Crop Area;
The part by picture to be edited corresponding to Crop Area shows by head portrait is added to after the size scaling of head portrait show area Specifically include in area:
By the cutting picture Jing after image procossing by being added in head portrait show area after the size scaling of head portrait show area.
4. method according to claim 3, it is characterised in that
Described image process includes one or more in following image procossing:
The process of black and white filter, the process of halation filter, the process of water droplet filter and hue adjustment are processed.
5. method according to claim 1, it is characterised in that
It is described also to include after the picture to be edited is loaded in first memory bitmap:
The word and/or Line Chart specified is drawn in the first memory bitmap;
The part by picture to be edited corresponding to Crop Area shows by head portrait is added to after the size scaling of head portrait show area Specifically include in area:
The word and/or Line Chart of drafting are plotted in picture to be edited by fused algorithm;
By in the picture to be edited corresponding to Crop Area part by being added to head portrait show area after the size scaling of head portrait show area In.
6. method as claimed in any of claims 1 to 5, it is characterised in that
The method also includes:
After the instruction of editor Crop Area is received, instructed according to the editor Crop Area and new Crop Area is set, with the new sanction Area is cut as Crop Area in the editing view, the first memory bitmap of the establishment is performed, the picture to be edited is loaded into Step and subsequent step 2-5 in first memory bitmap.
7. a kind of system for realizing head portrait editing interface, it is characterised in that the head portrait editing interface include editing view and Head portrait show area, the editing view includes Crop Area;By picture to be edited, mask layer, the frame of Crop Area and editor's anchor Point layering loading, calculating in internal memory are processed, and then again property is plotted to the editing view;The system includes:Artwork Layer generation module, mask layer generation module, laminating module, display module and head portrait display module;
The artwork layer generation module, for for the picture for selecting, by the editing view size scaling picture, treats described in generation Editing picture, creates the first memory bitmap, the picture to be edited is loaded in first memory bitmap, by described first Memory bitmap sends the laminating module to;
The mask layer generation module, for generating the translucent mask layer, the mask layer size and editing view chi It is very little identical, and the part of Crop Area in editing view is corresponded in the mask layer by hollow out, the second memory bitmap is created, will The mask layer is loaded in second memory bitmap, sends second memory bitmap to the laminating module;
The laminating module, for second memory bitmap to be added to first memory bitmap, in first memory bits The frame of the Crop Area is drawn in figure, and editor's anchor point is drawn on the frame of the Crop Area, by drafting have frame and First memory bitmap of editor's anchor point sends the display module to;
The display module, has frame and first memory bitmap of editor's anchor point to be plotted in editing view simultaneously for drawing Show;
The head portrait display module, for the part in picture to be edited corresponding to Crop Area to be pressed into head portrait show area size scaling After be added in head portrait show area.
8. system according to claim 7, it is characterised in that
The mask layer generation module, for creating and the equivalently-sized section object of editing view, in the section object Will part hollow out corresponding with Crop Area in the editing view;Add translucent shade in the section object, generate half Transparent mask layer.
9. system according to claim 7, it is characterised in that the system also includes:Cutting image generating module,
The cutting image generating module, for replicating picture to be edited in corresponding to Crop Area part, obtain cutting picture, Carry out image procossing to the cutting picture, create the 3rd memory bitmap, the cutting picture Jing after image procossing is loaded into into the In three memory bitmaps, the 3rd memory bitmap is sent to the laminating module, by the cutting figure Jing after image procossing Piece sends the head portrait display module to;
The laminating module, is additionally operable to the position that the 3rd memory bitmap is added in the first memory bitmap corresponding to Crop Area Put;
The head portrait display module, is additionally operable to add the cutting picture Jing after image procossing by after the size scaling of head portrait show area To in head portrait show area.
10. system according to claim 7, it is characterised in that
The artwork layer generation module, is additionally operable to be drawn in the first memory bitmap word and/or the Line Chart specified;
The display module, for the word and/or Line Chart of drafting to be plotted in picture to be edited by fused algorithm;Will In the picture to be edited corresponding to Crop Area part by being added in head portrait show area after the size scaling of head portrait show area.
CN201210581816.9A 2012-12-27 2012-12-27 Method and system for realizing head portrait editing interface Active CN103903292B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210581816.9A CN103903292B (en) 2012-12-27 2012-12-27 Method and system for realizing head portrait editing interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210581816.9A CN103903292B (en) 2012-12-27 2012-12-27 Method and system for realizing head portrait editing interface

Publications (2)

Publication Number Publication Date
CN103903292A CN103903292A (en) 2014-07-02
CN103903292B true CN103903292B (en) 2017-04-19

Family

ID=50994599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210581816.9A Active CN103903292B (en) 2012-12-27 2012-12-27 Method and system for realizing head portrait editing interface

Country Status (1)

Country Link
CN (1) CN103903292B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105550980B (en) * 2014-10-29 2018-11-27 阿里巴巴集团控股有限公司 A kind of Picture Generation Method and relevant apparatus
CN105989572B (en) * 2015-02-10 2020-04-24 腾讯科技(深圳)有限公司 Picture processing method and device
CN104766353B (en) * 2015-04-25 2018-03-30 陈包容 The method and device of word content is added in background
CN105045726B (en) * 2015-08-10 2019-10-11 Tcl集团股份有限公司 A kind of picture operation method and system based on parallel computation
CN105872706A (en) * 2015-12-30 2016-08-17 乐视致新电子科技(天津)有限公司 Display control method and device
CN105718140B (en) * 2016-01-18 2019-07-05 广州久邦世纪科技有限公司 A kind of wallpaper social contact method and its system
CN106210881A (en) * 2016-07-07 2016-12-07 新奥特(北京)视频技术有限公司 Audio/video processing method based on Qt environment and device and client
CN107577514A (en) * 2017-09-20 2018-01-12 广州市千钧网络科技有限公司 A kind of irregular figure layer cuts joining method and system
CN107766038B (en) * 2017-10-24 2021-06-29 四川长虹电器股份有限公司 Method for carrying out contour clipping and beautifying on UI control based on Android system
CN108279821B (en) * 2017-12-19 2020-08-04 福建天泉教育科技有限公司 Rolling effect implementation method based on Unity3D engine and terminal
CN108650396A (en) * 2018-03-12 2018-10-12 珠海格力电器股份有限公司 Head portrait generation method and equipment
CN109147015A (en) * 2018-07-24 2019-01-04 北京酷我科技有限公司 One kind thumbing up picture disappearance animation algorithms
CN109126136B (en) * 2018-07-27 2020-09-15 腾讯科技(深圳)有限公司 Three-dimensional virtual pet generation method, device, equipment and storage medium
CN112085818B (en) * 2019-06-14 2023-03-14 腾讯数码(天津)有限公司 Picture processing method and device
CN110554820B (en) * 2019-09-12 2021-04-13 西安瑞特森信息科技有限公司 GIS data editing method
CN110992438B (en) * 2019-11-29 2023-02-21 稿定(厦门)科技有限公司 Picture editing method and device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493951A (en) * 2009-03-05 2009-07-29 腾讯科技(深圳)有限公司 Skin design system and method in input tool
CN101506869A (en) * 2006-09-01 2009-08-12 捷讯研究有限公司 Method and apparatus for controlling a display in an electronic device
CN102004897A (en) * 2009-08-31 2011-04-06 索尼公司 Apparatus, method, and program for processing image
CN102027505A (en) * 2008-07-30 2011-04-20 泰塞拉技术爱尔兰公司 Automatic face and skin beautification using face detection
CN102262788A (en) * 2010-05-24 2011-11-30 上海一格信息科技有限公司 Method and device for processing interactive makeup information data of personal three-dimensional (3D) image
WO2012001948A1 (en) * 2010-06-30 2012-01-05 日本電気株式会社 Color image processing method, color image processing device, and color image processing program
CN102326181A (en) * 2009-01-28 2012-01-18 惠普发展公司,有限责任合伙企业 Dynamic image collage
CN102336069A (en) * 2010-07-16 2012-02-01 鸿富锦精密工业(深圳)有限公司 Printer with picture clipping function and picture clipping method
JP2012070310A (en) * 2010-09-27 2012-04-05 Fujifilm Corp Image editing apparatus, image editing method thereof, and program thereof
CN102496174A (en) * 2011-12-08 2012-06-13 中国科学院苏州纳米技术与纳米仿生研究所 Method for generating face sketch index for security monitoring
CN102663766A (en) * 2012-05-04 2012-09-12 云南大学 Non-photorealistic based art illustration effect drawing method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101506869A (en) * 2006-09-01 2009-08-12 捷讯研究有限公司 Method and apparatus for controlling a display in an electronic device
CN102027505A (en) * 2008-07-30 2011-04-20 泰塞拉技术爱尔兰公司 Automatic face and skin beautification using face detection
CN102326181A (en) * 2009-01-28 2012-01-18 惠普发展公司,有限责任合伙企业 Dynamic image collage
CN101493951A (en) * 2009-03-05 2009-07-29 腾讯科技(深圳)有限公司 Skin design system and method in input tool
CN102004897A (en) * 2009-08-31 2011-04-06 索尼公司 Apparatus, method, and program for processing image
CN102262788A (en) * 2010-05-24 2011-11-30 上海一格信息科技有限公司 Method and device for processing interactive makeup information data of personal three-dimensional (3D) image
WO2012001948A1 (en) * 2010-06-30 2012-01-05 日本電気株式会社 Color image processing method, color image processing device, and color image processing program
CN102336069A (en) * 2010-07-16 2012-02-01 鸿富锦精密工业(深圳)有限公司 Printer with picture clipping function and picture clipping method
JP2012070310A (en) * 2010-09-27 2012-04-05 Fujifilm Corp Image editing apparatus, image editing method thereof, and program thereof
CN102496174A (en) * 2011-12-08 2012-06-13 中国科学院苏州纳米技术与纳米仿生研究所 Method for generating face sketch index for security monitoring
CN102663766A (en) * 2012-05-04 2012-09-12 云南大学 Non-photorealistic based art illustration effect drawing method

Also Published As

Publication number Publication date
CN103903292A (en) 2014-07-02

Similar Documents

Publication Publication Date Title
CN103903292B (en) Method and system for realizing head portrait editing interface
CN112099683B (en) Wallpaper display method and device and electronic equipment
CN102156999B (en) Generation method and device thereof for user interface
CN104657956B (en) A method of realizing smart mobile phone picture beautifying functions
EP2669792B1 (en) Method and device for implementing many display modes for general icon
US10509553B1 (en) Interactive image recoloring
CN109584180A (en) Face image processing process, device, electronic equipment and computer storage medium
CN104424624B (en) A kind of optimization method and device of image synthesis
CN109544669B (en) Diffusion coloring using weighted color points
CN107958449A (en) A kind of image combining method and device
CN104866755B (en) Setting method and device for background picture of application program unlocking interface and electronic equipment
CN111784568A (en) Face image processing method and device, electronic equipment and computer readable medium
CN101776882B (en) Method for generating laser cutting program
CN106940621A (en) The method and apparatus of picture processing
CN105100664A (en) Image generation method and device
CN113330453A (en) System and method for providing personalized video for multiple persons
CN109886890A (en) A kind of application icon processing method and processing device
CN107679419B (en) Screen capturing method and device
CN107767437A (en) A kind of mixed asynchronous rendering intent of multilayer
CN111383320A (en) Virtual model processing method, device, equipment and storage medium
CN105930037B (en) window frame shadow display method and device
CN102081919A (en) Desktop segmenting display system and method of operating system of handheld device
CN103593828A (en) Image processing method capable of carrying out partial filter adding
CN111737785B (en) Data interaction method, device and system of Revit and AutoCAD
US9076263B2 (en) Image processing apparatus, picture style conversion method and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: Room 810, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080

Patentee after: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building 6 storey block A room 602

Patentee before: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder