Fenwick & West LLP
Icon generation method
Disclosed is an icon generation method, comprising: adjusting an original icon to a preset size for a certain resolution environment; determining statistics for the color values of all pixels of the original icon and calculating a dominant hue of the original icon; generating a background color based on a hue angle of the dominant hue and preset values of color saturation and brightness; applying the background color to a preset color gradient template to generate an icon background; cutting the adjusted icon by using a preset icon edge cutting template; and combining the icon background, the cut icon, and a preset icon foreground template to generate a final icon. Through the disclosed solution, new icons complying with a unified system style can be generated, and content consistency of the new icons can be best ensured.
Xiaomi Inc.
G G G G
G06T G06F G06F G06T
inventional inventional inventional inventional
Tian Jiangji Wanqiang Weixing
Ren Huang Li Li