Windows 7的任务栏图标高亮颜色 [英] Windows 7 Taskbar Icons Highlight Color

查看:907
本文介绍了Windows 7的任务栏图标高亮颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以解释如何根据主色图像中,如Windows-7任务栏计算亮点的颜色,当鼠标悬停在任务栏项目?
任何C#代码?

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?

推荐答案

我相信它是用一种方法采取在应用程序的图标中最突出的颜色与此类似:的Python - 查找一个主导/最常用的颜色图片

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.

这篇关于Windows 7的任务栏图标高亮颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆