Windows 7 Taskbar Icons Highlight Color

Can anyone explain how to calculate the highlight color based on dominant color in images like Windows-7 taskbar when mouse is over the taskbar item? Any c# code?


I believe what it does is take the most prominent color in the application's icon using a method similar to this: Python - Find dominant/most common color in an image

With that information, it then applies a translucent radial gradient hue and positions it based on your mouse location. The gradient is more white toward the center of your mouse, but the center is actually off screen. The closer to the actual taskbar item, the more transparent it becomes.

链接地址: http://www.djcxy.com/p/51802.html

上一篇: 如何调整颜色的亮度?

下一篇: Windows 7任务栏图标突出显示颜色