摘要 |
<p>The invention relates to a method for icon generation, comprising the following steps: adjusting an original icon to a preset size under the same resolution environment; making statistics of the color value of every pixel for the original icon, and calculate the dominant hue of the original icon; generating a background color according to a dominant hue's hue angle, preset color saturation and brightness; generating icon baseplate by applying the background color to the preset color gradient template; cutting the adjusted icon using the preset icon edge cutting template; overlapping the icon baseplate, the cut icon and a preset icon foreground template to generate a final icon. With this technical scheme of the present disclosure, new icons are compliable with a unified pattern of a third party's system, and guarantee proportionality of the new icons to the system.</p> |