Windows 7 Taskbar Icons Highlight Color

女生的网名这么多〃 提交于 2019-11-30 06:59:04

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/6361014/windows-7-taskbar-icons-highlight-color

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!