[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN106201212B - A kind of generation method of application icon, device and mobile terminal - Google Patents

A kind of generation method of application icon, device and mobile terminal Download PDF

Info

Publication number
CN106201212B
CN106201212B CN201610567570.8A CN201610567570A CN106201212B CN 106201212 B CN106201212 B CN 106201212B CN 201610567570 A CN201610567570 A CN 201610567570A CN 106201212 B CN106201212 B CN 106201212B
Authority
CN
China
Prior art keywords
layer
icon
color
application
fringe region
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
CN201610567570.8A
Other languages
Chinese (zh)
Other versions
CN106201212A (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.)
Sanshu Shihe (Shanxi) Digital Technology Co.,Ltd.
Original Assignee
Xiamen Meitu Mobile 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 Xiamen Meitu Mobile Technology Co Ltd filed Critical Xiamen Meitu Mobile Technology Co Ltd
Priority to CN201610567570.8A priority Critical patent/CN106201212B/en
Publication of CN106201212A publication Critical patent/CN106201212A/en
Application granted granted Critical
Publication of CN106201212B publication Critical patent/CN106201212B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a kind of generation methods of application icon, comprising steps of whether the original icon fringe region for judging application is transparent region;If not transparent region, then count the color category number of pixel in fringe region;If color category number is less than first threshold, the first figure layer is generated according to the color of fringe region;Original icon is cut according to the first preset template, obtains the second figure layer;Transparency by changing the second figure layer carries out virtualization processing to the second figure layer, obtains third figure layer;And the new icon of the application is generated by the first figure layer of superposition and third figure layer.The present invention also discloses corresponding application icon generating means and mobile terminal together.

Description

A kind of generation method of application icon, device and mobile terminal
Technical field
The present invention relates to field of mobile terminals, in particular to a kind of generation method of application icon, device and mobile terminal.
Background technique
The operating system of most computers or smart phone is all the various application programs for supporting third party to develop, and In the essentially all operating system with graphical interfaces, all support to indicate third party application by an icon, the figure Mark is provided by the developer of third party application.In Android system, the color of icon is not provided and limited, from It and make each application can arbitrarily in the icon or even an application icon of different colours there are many color.When multiple Using being mounted on the mobile terminal of user and its icon arrangement is when in desk interface simultaneously, mutual varies in color Icon to cause integral color to show more mixed and disorderly, visual effect is had some impact on.
Currently, to solve this problem, it will usually configure a unified bottom plate figure layer to icon.But bottom plate figure layer is matched The default bottom plate figure layer that scheme is typically preset, and the icon use different to all colours is unified is set, by certain Mode merges to form new icon, but since there is some difference between original Icon Color and the color of bottom plate figure layer, especially It is when the two color distinguishes larger, newly-generated icon can not be perfectly combined with bottom plate figure layer, visually be also easy to produce stiff sense.
Summary of the invention
For this purpose, the present invention provides a kind of generation scheme of application icon, to try hard to solve or at least alleviate exist above The problem of.
According to an aspect of the present invention, a kind of generation method of application icon is provided, comprising steps of the original of judgement application Whether beginning icon fringe region is transparent region;If not transparent region, then count the color category of pixel in fringe region Number;If color category number is less than first threshold, the first figure layer is generated according to the color of fringe region;According to the first preset template Original icon is cut, the second figure layer is obtained;Transparency by changing the second figure layer carries out virtualization processing to the second figure layer, obtains Third figure layer;And the new icon of the application is generated by the first figure layer of superposition and third figure layer.
Optionally, in application according to the present invention icon generation method, judge whether fringe region is transparent region Step includes: the color of pixel in the original icon fringe region for obtain application, and wherein the width of fringe region is 10 pixels; And judge whether fringe region is transparent according to the Alpha value of color.
Optionally, in application according to the present invention icon generation method, the first figure is generated according to the color of fringe region The step of layer includes: the color value that sampling obtains pixel in fringe region, and wherein the sampling interval is 10 pixels;It is obtained with sampling Color value with from top to down gradual manner filling generate the first figure layer.
Optionally, in application according to the present invention icon generation method, judge whether fringe region is transparent region After step, if further comprising the steps of: fringe region is transparent region, the first figure layer is generated according to preset color;According to first Preset template cuts original icon, obtains the second figure layer;And the application is generated by the first figure layer of superposition and the second figure layer New icon.
Optionally, in application according to the present invention icon generation method, the color kind of pixel in fringe region is counted After the step of class number, if further comprising the steps of: statistics obtains color category number not less than first threshold, bi-directional scaling application Original icon;Application icon after cutting scaling according to the second preset template, generates new icon.
Optionally, in application according to the present invention icon generation method, first threshold is 4.
Optionally, in application according to the present invention icon generation method, the first figure layer area is greater than the second figure layer area, Second figure layer area is equal to third figure layer area.
According to a further aspect of the invention, a kind of generating means of application icon are provided, comprising: judging unit is suitable for Whether the original icon fringe region for judging application is transparent region;Statistic unit, suitable for being transparent judging fringe region not When region, the color category number of pixel in fringe region is counted;First generation unit, suitable in the color category number counted When less than first threshold, the first figure layer is generated according to the color of fringe region;Unit is cut, is suitable for cutting out according to the first preset template Original icon is cut, the second figure layer is obtained;Second generation unit, suitable for by change the second figure layer transparency to the second figure layer into Row virtualization processing, obtains third figure layer;Third generation unit, suitable for being answered by the first figure layer of superposition with third figure layer to generate this New icon.
Optionally, in application according to the present invention icon generating means, judging unit further include: obtain subelement, fit In the color of pixel in the original icon fringe region for obtaining application, wherein the width of fringe region is 10 pixels;Judgement is single Member is further adapted for judging whether fringe region is transparent according to the Alpha value of color.
Optionally, in application according to the present invention icon generating means, the first generation unit is further adapted for sampling and obtains side The color value of pixel in edge region, wherein the sampling interval is 10 pixels and the color value obtained with sampling with from top to down Gradual manner filling generate the first figure layer.
Optionally, in application according to the present invention icon generating means, if judging unit judges that fringe region is transparent Region, then the first generation unit is further adapted for generating the first figure layer according to preset color;Third generation unit is further adapted for passing through superposition First figure layer and the second figure layer generate the new icon of the application.
Optionally, in application according to the present invention icon generating means, if statistic unit counts to obtain color category number Not less than first threshold, then cut unit be further adapted for bi-directional scaling application original icon after, according to the second preset template cut out Application icon after cutting scaling, generates new icon.
Optionally, in application according to the present invention icon generating means, first threshold is 4.
Optionally, in application according to the present invention icon generating means, the first figure layer area is greater than the second figure layer area, Second figure layer area is equal to third figure layer area.
According to another aspect of the invention, a kind of mobile terminal is provided, the generation with application icon as described above Device.
The technical solution that application according to the present invention icon generates, passes through the face of the original icon fringe region of statistics application Icon is divided into the icon and general icon of fringe region transparent icons, various colors by color.For general icon, according to edge The type of field color generates the icon bottom plate of gradual change, original icon is cut further according to preset template, after then cutting Icon is merged with bottom plate, generates new icon.Further, to improve degrees of fusion, first the icon after cutting can be blurred Processing is blended with bottom plate again.By this method, the otherness on icon integral color can be reduced, greatly improves and answers With the degrees of fusion and aesthetic feeling of icon.
In addition, the icon transparent for fringe region, then using the icon bottom plate of predetermined color with cut after icon into Row fusion, to improve the degrees of fusion of icon layer and backplane level;And for the icon of various colors, due to itself gradation compared with It is more, therefore scaling original graph target mode is directlyed adopt, it cuts to obtain new icon of corresponding size.
In short, handling application icon by this programme, more preferably visual perception's effect can be brought for user.
Detailed description of the invention
To the accomplishment of the foregoing and related purposes, certain illustrative sides are described herein in conjunction with following description and drawings Face, these aspects indicate the various modes that can practice principles disclosed herein, and all aspects and its equivalent aspect It is intended to fall in the range of theme claimed.Read following detailed description in conjunction with the accompanying drawings, the disclosure it is above-mentioned And other purposes, feature and advantage will be apparent.Throughout the disclosure, identical appended drawing reference generally refers to identical Component or element.
Fig. 1 shows the schematic diagram of mobile terminal 100 according to an embodiment of the invention;
Fig. 2 shows the flow charts of the generation method 200 of application icon according to an embodiment of the invention;
Fig. 3 show fringe region according to an embodiment of the invention it is transparent when generate application icon schematic diagram;
Fig. 4 generates the signal of application icon when showing original icon various colors according to an embodiment of the invention Figure;
Fig. 5 shows the schematic diagram of the generation application icon of another embodiment according to the present invention;And
Fig. 6 shows the block diagram of the generating means 600 of application icon according to an embodiment of the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Fig. 1 is the structural block diagram of mobile terminal 100.Mobile terminal 100 may include memory interface 102, and one or more A data processor 104 and peripheral interface 106.
Memory interface 102, one or more processors 104 and/or peripheral interface 106 either discrete component, It can integrate in one or more integrated circuits.In the mobile terminal 100, various elements can pass through one or more communication Bus or signal wire couple.Sensor, equipment and subsystem may be coupled to peripheral interface 106, a variety of to help to realize Function.
For example, motion sensor 110, light sensor 112 and range sensor 114 may be coupled to peripheral interface 106, To facilitate the functions such as orientation, illumination and ranging.Other sensors 116 can equally be connected with peripheral interface 106, such as positioning system System (such as GPS receiver), temperature sensor, biometric sensor or other sensor devices, it is possible thereby to help to implement phase The function of pass.
Camera sub-system 120 and optical sensor 122 can be used for the camera of convenient such as record photos and video clips The realization of function, wherein the camera sub-system and optical sensor for example can be charge-coupled device (CCD) or complementary gold Belong to oxide semiconductor (CMOS) optical sensor.It can help to realize by one or more radio communication subsystems 124 Communication function, wherein radio communication subsystem may include radio-frequency transmitter and transmitter and/or light (such as infrared) receiver And transmitter.The particular design and embodiment of radio communication subsystem 124 can depend on mobile terminal 100 is supported one A or multiple communication networks.For example, mobile terminal 100 may include be designed to support LTE, 3G, GSM network, GPRS network, EDGE network, Wi-Fi or WiMax network and BlueboothTMThe communication subsystem 124 of network.
Audio subsystem 126 can be coupled with loudspeaker 128 and microphone 130, to help to implement to enable voice Function, such as speech recognition, speech reproduction, digital record and telephony feature.I/O subsystem 140 may include touch screen control Device 142 processed and/or other one or more input controllers 144.Touch screen controller 142 may be coupled to touch screen 146.It lifts For example, any one of a variety of touch-sensing technologies are can be used to detect in the touch screen 146 and touch screen controller 142 The contact and movement or pause carried out therewith, wherein detection technology includes but is not limited to capacitive character, resistive, infrared and table Face technology of acoustic wave.Other one or more input controllers 144 may be coupled to other input/control devicess 148, such as one Or the pointer device of multiple buttons, rocker switch, thumb wheel, infrared port, USB port, and/or stylus etc.It is described One or more button (not shown)s may include the up/down for controlling 130 volume of loudspeaker 128 and/or microphone Button.
Memory interface 102 can be coupled with memory 150.The memory 150 may include that high random access is deposited Reservoir and/or nonvolatile memory, such as one or more disk storage equipments, one or more optical storage apparatus, and/ Or flash memories (such as NAND, NOR).Memory 150 can store an operating system 172, for example, Android, iOS or The operating system of Windows Phone etc.The operating system 172 may include for handling basic system services and execution The instruction of task dependent on hardware.Memory 150 can also be stored using 174.It, can be from memory in mobile device operation Load operating system 172 in 150, and executed by processor 104.At runtime using 174, can also add from memory 150 It carries, and is executed by processor 104.It operates on operating system using 174, is provided using operating system and bottom hardware Interface realizes the various desired functions of user, such as instant messaging, web page browsing, pictures management.Using 174 can be independently of What operating system provided, it is also possible to what operating system carried.In addition, when being mounted in mobile terminal 100 using 174, Drive module can be added to operating system.
Implementation according to the present invention arranges the generating means 600 of application icon for realizing this hair in application 174 The generation scheme of bright application icon.
Fig. 2 shows the flow charts of the generation method 200 of application icon according to an embodiment of the invention.Application icon Generation method 200 is suitable for executing in mobile terminal (such as mobile terminal 100 shown in FIG. 1).
As shown in Fig. 2, method 200 starts from step S210.In step S210, the original icon fringe region of application is judged It whether is transparent region.Specifically, the color of pixel in the fringe region of the original icon surrounding of application is obtained, wherein marginal zone The width in domain is 10 pixels, then judges whether fringe region is transparent according to the Alpha value of color.
According to an embodiment of the invention, if judge fringe region be it is transparent, just directly generate the according to preset color One figure layer;The original icon for cutting application according to the first preset template simultaneously, obtains the second figure layer;Eventually by being superimposed the first figure Layer and the second figure layer generate the new icon of the application.
As Fig. 3 schematically illustrate fringe region it is transparent when generate application icon schematic diagram.As shown, original graph Mark 310 obtains the second figure layer 330 after the first preset template 320 is cut, the second figure layer 330 again with the first figure layer for being generated in advance 340 superpositions, fusion generate new icon 350.According to an embodiment of the invention, it is 135 pixels that the first preset template, which is diameter, It is round;The length and width of first figure layer are 201 pixels, in short, bottom plate of first figure layer as icon, guarantees the face of the first figure layer Product is greater than the area of the second figure layer.Optionally, the rgb value of preset color is set as (R, G, B)=(237,236,236), root The first figure layer 340 is generated according to the color value.It should be noted that being applied in this example due to performance color bad in attached drawing Pattern or color in different shade representative icons, simply enumerate the superimposed state of icon, in practice, fusion Visual effect can have more aesthetic feeling.
Then, in step S220, if judging, fringe region is not transparent region, counts pixel in fringe region Color category number.According to one embodiment of present invention, the color value for the fringe region that will acquire is converted to HSB color space Respective value, wherein H represents tone, S represents saturation degree, B represents brightness.
It is the statistic processes of color category below:
If S=0, judge color for white;
If B=0, judge color for black;
To remaining pixel, judged according to tone H, the range of tone H is [0,360 °], accordingly certainly by tone H Being divided into for definition is several sections following: [0,30 °), [30 °, 60 °) and [60 °, 90 °), [90 °, 120 °), [120 °, 150 °), [150 °, 180 °), [180 °, 210 °), [210 °, 240 °), [240 °, 270 °), [270 °, 300 °), [300 °, 330 °), [330 °, 360 °], each segmentation is used as a kind of colour type, the color category number of all pixels point in fringe region is counted, optionally, The statistical color classification by the way of color histogram.It is counted it should be noted that be not limited in the space HSB herein, Similar color space, such as HSV, HSI etc. can be combined with the present embodiment, statistical color species number.
In later step S230, the original icon face of the application is judged according to the color category number counted in step S220 Whether color enriches.
A kind of situation is:
If color category number is not less than first threshold (for example, 4 kinds), i.e., original icon has 4 kinds or 4 kinds or more face Color, then it is assumed that the color of the icon is very abundant.Generally for such icon, if it is generated new figure with the superposition of corresponding bottom plate Mark, seeming, level is more, and icon is difficult to merge well with bottom plate, and visual effect is undesirable.Therefore, in the present embodiment, Icon more rich for this color, not by the way of bottom plate fusion, but the size that the new icon of direct basis needs is pressed The original icon of scaling, generally, scaling are not more than 1:1.5 (or 1.5:1);Then it is cut according to the second preset template Application icon after scaling generates new icon.As shown in Figure 4, wherein 410 indicate the original icon of application, and 420 indicate contracting Icon (being amplified icon in this example) after putting, 430 indicate the second preset template, and new icon is obtained after cut 440。
Another situation is that:
If color category number is less than first threshold (for example, 4 kinds), then it is assumed that the original graph target color is not enriched, then The first figure layer, that is, icon bottom plate are just generated according to the color of fringe region.Specifically, to the edge obtained in step S210 The pixel color value in region is sampled, and the sampling interval is set as 10 pixels, and the color value that sampling obtains is stored.According to A kind of implementation, if the starting point of sampling is set to first pixel of fringe region the first row first row, then, it is deposited after sampling The color value of storage is corresponding be exactly fringe region first row pixel color value.
Then, the first figure layer is generated with gradual manner filling from top to down with the color value that sampling obtains.As sampled To 10 color values, then sequentially this 10 kinds of colors of Gradually varied fill from top to down, obtain the first figure layer, as 550 in Fig. 5 are exemplary Ground shows the schematic diagram of the first figure layer of gradual change.
Step S240 is subsequently entered, original icon is cut according to the first preset template, obtains the second figure layer.First is pre- herein Template is set with the first preset template 320 in Fig. 3.
Then in step s 250, virtualization processing is carried out to the second figure layer by changing the transparency of the second figure layer, obtained Third figure layer.In the present embodiment, gradual change processing is made to the transparency of the second figure layer most pixel in outer region, for example, setting The transparency for setting 5 pixels from outside to inside is gradually changed from 0-255, obtains a kind of effect of virtualization.And the face of third figure layer Product is equal to the area of the second figure layer.
Then in step S260, the new icon of the application is generated by the first figure layer of superposition and third figure layer.
As Fig. 5 shows icon treatment process not abundant for color.Original icon is cut with the first preset template 320 510, obtain the second figure layer 530;Then virtualization is carried out to the second figure layer 530 to handle to obtain third figure layer 540;On the other hand, lead to The color value of the original icon fringe region of over-sampling generates the first figure layer 550 of color gradient from top to down;Finally by the first figure Layer 550 and third figure layer 540 superposition, merge the application new icon 560.Gradually due to bad embodiment color in the accompanying drawings Become, therefore in the first figure layer 550, the gradual change shape for illustrating color is only illustratively distinguished with the color of " grey " " white " Formula.
By being described above, icon is divided by this method 200 by the color of the original icon fringe region of statistics application The icon and general icon of fringe region transparent icons, various colors.For general icon, according to the kind of fringe region color Class generates the icon bottom plate of gradual change, cuts original icon further according to preset template, then melts the icon after cutting with bottom plate It closes, generates new icon.Further, to improve degrees of fusion, virtualization processing, again same bottom plate first can be carried out to the icon after cutting It blends.By this method, the otherness on icon integral color can be reduced, greatly improves the degrees of fusion of application icon And aesthetic feeling.
In addition, the icon transparent for fringe region, then using the icon bottom plate of predetermined color with cut after icon into Row fusion, to improve the degrees of fusion of icon layer and backplane level;And for the icon of various colors, due to itself gradation compared with It is more, therefore scaling original graph target mode is directlyed adopt, it cuts to obtain new icon of corresponding size.
To sum up, scheme is generated according to the icon that method 200 is realized, can reduce otherness, further beauty between icon Change icon, and provides more preferably visual effect for user.
Such as Fig. 6, the block diagram of the generating means 600 of application icon according to an embodiment of the invention is shown.The application The generating means 600 of icon include: judging unit 610, statistic unit 620, the first generation unit 630, cut unit 640, Two generation units 650 and third generation unit 660.
Judging unit 610 is suitable for judging whether the original icon fringe region of application is transparent region.It is according to the present invention Embodiment, judging unit 610 further include obtaining subelement, obtain subelement and are suitable for obtaining in the original icon fringe region of application The color of pixel, wherein the width of fringe region is 10 pixels.Judging unit 610 is according to the Alpha value of the color got Judge whether fringe region is transparent.
Statistic unit 620 is suitable for when judging fringe region not is transparent region, counts the face of pixel in fringe region Color species number.According to one embodiment of present invention, the color value for the fringe region that will acquire is converted to pair of HSB color space It should be worth, wherein H represents tone, S represents saturation degree, B represents brightness, and the range of H is [0,360 °], and the range of S is [0,1], B's Range is [0,1].
It is the statistic processes of color category below:
If S=0, judge color for white;
If B=0, judge color for black;
To remaining pixel, judged according to tone H, is divided into following several sections for tone H is customized: [0,30 °), [30 °, 60 °) [60 °, 90 °), [90 °, 120 °), [120 °, 150 °), [150 °, 180 °), [180 °, 210 °), [210 °, 240 °), [240 °, 270 °), [270 °, 300 °), [300 °, 330 °), [330 °, 360 °], each segmentation is used as a kind of color Classification counts the color category number of all pixels point in fringe region, optionally, the statistical color by the way of color histogram Classification.It is counted it should be noted that be not limited in the space HSB herein, similar color space, such as HSV, HSI Etc. can be combined with the present embodiment, statistical color species number.
The color category number that first generation unit 630 is suitable for obtaining in statistics is less than first threshold (for example, first threshold etc. When 4), the first figure layer is generated according to the color of fringe region.Specifically, the first generation unit 630 is further configured to: being adopted Sample obtains the color value of pixel in fringe region, and wherein the sampling interval is 10 pixels;With the obtained color value of sampling with from upper Gradual manner filling under and generates the first figure layer.
It cuts unit 640 to be suitable for cutting original icon according to the first preset template, obtains the second figure layer.
Second generation unit 650 is suitable for carrying out virtualization processing to the second figure layer by the transparency for changing the second figure layer, obtains To third figure layer.
Third generation unit 660 is suitable for generating the new icon of the application by the first figure layer of superposition and third figure layer.Such as Fig. 5 shows that fringe region is opaque and the treatment process of color icon not abundant:
It cuts unit 640 and original icon 510 is cut according to the first preset template 320, obtain the second figure layer 530;Second is raw It carries out virtualization to the second figure layer 530 at unit 650 and handles to obtain third figure layer 540 (not changing the second figure layer 530 during this Shape size, that is, the second figure layer 530 and the area having the same of third figure layer 540);First generation unit 630 is former by sampling The color value of beginning icon fringe region generates the first figure layer 550 of color gradient from top to down;Third generation unit 660 is by first Figure layer 550 and third figure layer 540 superposition, merge the application new icon 560.Gradually due to bad embodiment color in the accompanying drawings Become, therefore in the first figure layer 550, the gradual change shape for illustrating color is only illustratively distinguished with the color of " grey " " white " Formula.
According to another embodiment of the invention, if judging unit 610 judges that fringe region is transparent region, then, the One generation unit 630 be further adapted for according to preset color generate the first figure layer, then by third generation unit 660 by be superimposed this first Figure layer and the second figure layer (cut unit 640 cuts to obtain) generate the new icon of the application.
The second figure layer is obtained as shown in figure 3, cutting unit 640 and cutting original icon 310 according to the first preset template 320 330;Second figure layer 330 is superimposed by third generation unit 660 with the first figure layer 340 being generated in advance, and fusion generates new icon 350。
According to an embodiment of the invention, the first preset template is the circle that diameter is 135 pixels;The length and width of first figure layer It is 201 pixels, in short, bottom plate of first figure layer as icon, guarantees that the area of the first figure layer is greater than the second figure layer Area.Optionally, the rgb value of preset color is set as (R, G, B)=(237,236,236), generates according to the color value One figure layer 340.It should be noted that applying different shade representative icons in this example due to performance color bad in attached drawing In pattern or color, simply enumerate the superimposed state of icon, in practice, the visual effect of fusion can be more beautiful Sense.
According to another embodiment of the present invention, if the statistics of statistic unit 620 obtains color category number not less than first threshold (such as first threshold takes 4), then it is assumed that the color of the icon is very abundant.Generally for such icon, if still using as above It is generated new icon with the superposition of corresponding bottom plate, can seem that new icon level is more, icon is difficult to bottom plate by the method Fusion, visual effect are undesirable well.Therefore, icon more rich for this color, not by the way of bottom plate fusion, But the application after the original icon by cutting the application of 640 bi-directional scaling of unit, after scaling is cut according to the second preset template Icon generates new icon.
Amplified icon 420 is obtained as shown in figure 4, cutting unit 640 and scaling up the original icon 410 applied, 420 are cut further according to the second preset template 430, obtains new icon 440.
To sum up, it is saturating to be divided into fringe region by the color of the original icon fringe region of statistics application by device 600 for icon The icon and general icon of bright icon, various colors.For general icon, gradual change is generated according to the type of fringe region color Icon bottom plate, cut original icon further according to preset template, then merge the icon after cutting with bottom plate, generate new figure Mark.Further, it is to improve degrees of fusion, virtualization processing first can be carried out to the icon after cutting, blended again with bottom plate.
In addition, the icon transparent for fringe region, then using the icon bottom plate of predetermined color with cut after icon into Row fusion, to improve the degrees of fusion of icon layer and backplane level;And for the icon of various colors, due to itself gradation compared with It is more, therefore scaling original graph target mode is directlyed adopt, it cuts to obtain new icon of corresponding size.
Therefore the icon generating means 600 can reduce the otherness on icon integral color, greatly improve application drawing Target degrees of fusion and aesthetic feeling provide more preferably visual effect for user.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, knot is not been shown in detail Structure and technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims than feature more features expressly recited in each claim.More precisely, as following As claims reflect, inventive aspect is all features less than single embodiment disclosed above.Therefore, it abides by Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself As a separate embodiment of the present invention.
Those skilled in the art should understand that the module of the equipment in example disclosed herein or unit or groups Part can be arranged in equipment as depicted in this embodiment, or alternatively can be positioned at and the equipment in the example In different one or more equipment.Module in aforementioned exemplary can be combined into a module or furthermore be segmented into multiple Submodule.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
B10, the device as described in B8 or 9, wherein the first generation unit, which is further adapted for sampling, obtains pixel in fringe region Color value, wherein the sampling interval is 10 pixels and is filled with the color value that sampling obtains with gradual manner from top to down Generate the first figure layer.B11, the device as described in any one of B8-10, wherein if judging unit judges that fringe region is transparent Region, then the first generation unit is further adapted for generating the first figure layer according to preset color;Third generation unit is further adapted for passing through superposition First figure layer and the second figure layer generate the new icon of the application.B12, the device as described in any one of B8-11, In, if statistic unit counts to obtain color category number not less than first threshold, cuts unit and be further adapted for bi-directional scaling application Original icon after, according to the second preset template cut scaling after application icon, generate new icon.In B13, such as B8-12 Described in any item devices, wherein first threshold is 4.B14, the device as described in any one of B8-13, wherein the first figure layer face Product is greater than the second figure layer area, and the second figure layer area is equal to third figure layer area.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
In addition, be described as herein can be by the processor of computer system or by executing by some in the embodiment The combination of method or method element that other devices of the function are implemented.Therefore, have for implementing the method or method The processor of the necessary instruction of element forms the device for implementing this method or method element.In addition, Installation practice Element described in this is the example of following device: the device be used for implement as in order to implement the purpose of the invention element performed by Function.
As used in this, unless specifically stated, come using ordinal number " first ", " second ", " third " etc. Description plain objects, which are merely representative of, is related to the different instances of similar object, and is not intended to imply that the object being described in this way must Must have the time it is upper, spatially, sequence aspect or given sequence in any other manner.
Although the embodiment according to limited quantity describes the present invention, above description, the art are benefited from It is interior it is clear for the skilled person that in the scope of the present invention thus described, it can be envisaged that other embodiments.Additionally, it should be noted that Language used in this specification primarily to readable and introduction purpose and select, rather than in order to explain or limit Determine subject of the present invention and selects.Therefore, without departing from the scope and spirit of the appended claims, for this Many modifications and changes are obvious for the those of ordinary skill of technical field.For the scope of the present invention, to this Invent done disclosure be it is illustrative and not restrictive, it is intended that the scope of the present invention be defined by the claims appended hereto.

Claims (13)

1. a kind of generation method of application icon, the method includes the steps:
Whether the original icon fringe region for judging application is transparent region;If not transparent region, then count in fringe region The color category number of pixel;
If the color category number is not less than first threshold, the original icon of bi-directional scaling application;
Application icon after cutting scaling according to the second preset template, generates the new icon of the application;
If the color category number is less than first threshold, the first figure layer is generated according to the color of fringe region;
Original icon is cut according to the first preset template, obtains the second figure layer;
Transparency by changing the second figure layer carries out virtualization processing to the second figure layer, obtains third figure layer;And
The new icon of the application is generated by being superimposed first figure layer and third figure layer.
2. the method for claim 1, wherein judging that the step of whether fringe region is transparent region includes:
The color of pixel in the original icon fringe region of application is obtained, wherein the width of fringe region is 10 pixels;And
Judge whether fringe region is transparent according to the Alpha value of color.
3. the method as described in claim 1, wherein the step of first figure layer of generation according to the color of fringe region includes:
Sampling obtains the color value of pixel in fringe region, and wherein the sampling interval is 10 pixels;
The first figure layer is generated with gradual manner filling from top to down with the color value that sampling obtains.
4. method as claimed in any one of claims 1-3, wherein judge the step of whether fringe region is transparent region it Afterwards, it further comprises the steps of:
If fringe region is transparent region, the first figure layer is generated according to preset color;
Original icon is cut according to the first preset template, obtains the second figure layer;And
The new icon of the application is generated by being superimposed first figure layer and the second figure layer.
5. the method as described in claim 1, wherein the first threshold is 4.
6. the method for claim 1, wherein
The first figure layer area is greater than the second figure layer area, and the second figure layer area is equal to third figure layer area.
7. a kind of generating means of application icon, described device include:
Judging unit, suitable for judging whether the original icon fringe region of application is transparent region;
Statistic unit, suitable for counting the color category of pixel in fringe region when judging fringe region not is transparent region Number;
First generation unit, suitable for being given birth to according to the color of fringe region when the color category number counted is less than first threshold At the first figure layer;
Unit is cut, suitable for cutting original icon according to the first preset template, obtains the second figure layer, and in the color counted When species number is not less than first threshold, after the original icon of bi-directional scaling application, after cutting scaling according to second threshold template Application icon, generate new application icon;
Second generation unit obtains third suitable for carrying out virtualization processing to the second figure layer by the transparency for changing the second figure layer Figure layer;
Third generation unit, suitable for generating the new icon of the application by being superimposed first figure layer and third figure layer.
8. device as claimed in claim 7, wherein the judging unit further include:
Subelement is obtained, the color of pixel, the wherein width of fringe region in the original icon fringe region suitable for obtaining application For 10 pixels;
The judging unit is further adapted for judging whether fringe region is transparent according to the Alpha value of color.
9. device as claimed in claim 7, wherein
First generation unit is further adapted for the color value that sampling obtains pixel in fringe region, and wherein the sampling interval is 10 pictures Element and with the obtained color value of sampling with gradual manner filling the first figure layer of generation from top to down.
10. device as claimed in any one of claims 7-9, wherein if the judging unit judges that fringe region is transparent Region, then
First generation unit is further adapted for generating the first figure layer according to preset color;
Third generation unit is further adapted for generating the new icon of the application by being superimposed first figure layer and the second figure layer.
11. device as claimed in claim 7, wherein the first threshold is 4.
12. device as claimed in claim 7, wherein the first figure layer area is greater than the second figure layer area, the second figure layer face Product is equal to third figure layer area.
13. a kind of mobile terminal has the generating means of the application icon as described in any one of claim 7-12.
CN201610567570.8A 2016-07-19 2016-07-19 A kind of generation method of application icon, device and mobile terminal Active CN106201212B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610567570.8A CN106201212B (en) 2016-07-19 2016-07-19 A kind of generation method of application icon, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610567570.8A CN106201212B (en) 2016-07-19 2016-07-19 A kind of generation method of application icon, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN106201212A CN106201212A (en) 2016-12-07
CN106201212B true CN106201212B (en) 2019-05-03

Family

ID=57493457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610567570.8A Active CN106201212B (en) 2016-07-19 2016-07-19 A kind of generation method of application icon, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN106201212B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106843649B (en) * 2017-01-13 2020-07-03 北京数科网维技术有限责任公司 Icon processing method and device and terminal
CN107122108B (en) * 2017-04-27 2020-10-16 腾讯科技(深圳)有限公司 Picture editing method and device
CN107241637B (en) * 2017-05-26 2020-01-31 四川长虹电器股份有限公司 Method for intelligently matching application icons with backboard color plates based on HSB color mode
CN108053436B (en) * 2017-11-15 2020-10-16 阿里巴巴(中国)有限公司 Picture processing method and device, electronic equipment and picture server
CN108170431B (en) * 2017-12-27 2020-12-15 深圳Tcl新技术有限公司 Navigation label window color setting method and device
CN108363606A (en) * 2018-03-15 2018-08-03 上海哔哩哔哩科技有限公司 Splashette display methods, device and computer readable storage medium
CN110569453B (en) * 2018-03-27 2021-10-15 阿里巴巴(中国)有限公司 Path blurring method and device based on canvas element
CN111104193B (en) * 2018-10-25 2024-08-20 北京奇虎科技有限公司 Application program active interface display method and device, storage medium and terminal equipment
CN109683758B (en) * 2018-12-13 2021-05-07 惠州Tcl移动通信有限公司 Application icon display method and device and storage medium
CN113034631B (en) 2019-12-24 2024-06-28 花瓣云科技有限公司 Theme icon generation method and device and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622214A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method and device for realizing multiple-display mode universal icons
CN103927772A (en) * 2014-04-30 2014-07-16 厦门美图之家科技有限公司 Icon synthesizing method
CN105512136A (en) * 2014-09-25 2016-04-20 中兴通讯股份有限公司 Method and device for processing based on layer
CN105653128A (en) * 2015-12-29 2016-06-08 厦门美图移动科技有限公司 Application icon generation method and device as well as mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101361333B1 (en) * 2011-08-26 2014-02-10 주식회사 팬택 Apparatus and Method for Controlling Lock Mode

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622214A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method and device for realizing multiple-display mode universal icons
CN103927772A (en) * 2014-04-30 2014-07-16 厦门美图之家科技有限公司 Icon synthesizing method
CN105512136A (en) * 2014-09-25 2016-04-20 中兴通讯股份有限公司 Method and device for processing based on layer
CN105653128A (en) * 2015-12-29 2016-06-08 厦门美图移动科技有限公司 Application icon generation method and device as well as mobile terminal

Also Published As

Publication number Publication date
CN106201212A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
CN106201212B (en) A kind of generation method of application icon, device and mobile terminal
CN105653128B (en) A kind of application icon generation method, device and mobile terminal
CN106484396B (en) Night mode switching method and device and terminal equipment
CN111194436A (en) Method for direct manipulation of multi-layer user interface
US10592102B2 (en) Method for implementing dialing keypad of touch screen and smart watch
US10095377B2 (en) Method and device for displaying icon badge
CN107123399A (en) The method of adjustment and mobile terminal of mobile terminal screen brightness
CN105426079B (en) The method of adjustment and device of picture luminance
CN107145902B (en) A kind of image processing method based on convolutional neural networks, device and mobile terminal
CN104157301A (en) Method, device and terminal deleting voice information blank segment
CN104063123A (en) Icon displaying method and device
US20170153754A1 (en) Method and device for operating object
CN109032898A (en) A kind of display methods of icon, device, equipment and storage medium
CN105447820B (en) A kind of image processing method, device and mobile terminal
CN104318185B (en) A kind of application control method, equipment and mobile terminal
CN106020596A (en) Method and device for setting desktop background image of mobile terminal as well as mobile terminal
CN105118019A (en) Image processing method and user terminal
CN106201509B (en) A kind of information display method, device and mobile terminal
CN106101526A (en) Screen recording method and device
CN106126424A (en) A kind of visual automated testing method of script, device and mobile terminal
CN105512033A (en) Automated testing method and device of mobile terminal and mobile terminal
CN106528163B (en) A kind of page switching method and device
CN104516673A (en) Icon display method, equipment and mobile terminal
CN206595991U (en) A kind of double-camera mobile terminal
CN105739817B (en) A kind of method, device and mobile terminal of icon hiding

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230417

Address after: 030600, 3rd Floor, Building A3, Shanxi Smart Technology City, University City Industrial Park, Jinzhong Development Zone, Shanxi Demonstration Zone, Jinzhong City, Shanxi Province

Patentee after: Shanxi Sanshu Shihe Cultural Media Co.,Ltd.

Address before: 361009 112a, Pioneer Building, Pioneer Park, torch hi tech Zone, Xiamen City, Fujian Province

Patentee before: Xiamen Meitu Mobile Technology Co.,Ltd.

CP03 Change of name, title or address

Address after: 030600, 3rd Floor, Building A3, Shanxi Smart Technology City, University City Industrial Park, Jinzhong Development Zone, Shanxi Demonstration Zone, Jinzhong City, Shanxi Province

Patentee after: Sanshu Shihe (Shanxi) Digital Technology Co.,Ltd.

Country or region after: China

Address before: 030600, 3rd Floor, Building A3, Shanxi Smart Technology City, University City Industrial Park, Jinzhong Development Zone, Shanxi Demonstration Zone, Jinzhong City, Shanxi Province

Patentee before: Shanxi Sanshu Shihe Cultural Media Co.,Ltd.

Country or region before: China