如何获取网页上某种颜色的十六进制代码?
我有一个带有图片的网页。那张照片有颜色。
我需要该图片中颜色的十六进制代码。我怎样才能得到它?
I have a web page which has a picture. That picture has a color.
I need the hex code of the color in that picture. How can I get it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
下载火狐浏览器。获取 ColorZilla 插件。单击 ColorZilla。移至您想要的颜色上。瞧!你有十六进制代码。
Get Firefox. Get the ColorZilla plugin. Click on ColorZilla. Move over the color you want. Voila! You have the hexadecimal codes.
另一个要使用的程序是 ColorPic。
Another program to use is ColorPic.
ColorSchemer ColorPix 是另一个不错的选择。重量轻,并且它为您提供(除其他外)给定颜色的 RGB 和十六进制。
ColorSchemer ColorPix is another good option. Light weight, and it gives you (among others) the RGB as well as the Hex for a given color.
Internet Explorer 开发人员工具栏(Internet Explorer 8 中的 F12)的“工具”菜单中有一个颜色选择器,可以为您提供帮助。
Firefox 有一些可用的附加组件可以做同样的事情。
The Internet Explorer developer toolbar (F12 in Internet Explorer 8) has a colour picker in the Tools menu that should help you.
Firefox has a few add-ons available that do the same thing.
如果您想通过软件而不是手动执行此操作,您可以使用 canvas 元素支持的浏览器 - 在画布上绘制图像,然后提取所需像素的颜色信息。请参阅此相关问题了解具体方法。
If you want to do this in software, rather than manually, you could use a canvas element in supported browsers - draw the image on the canvas, then extract the colour information of the desired pixel. See this related question for how.
您可以尝试 Nattyware 的 Pixie。这是免费的,他们还有便携式版本。
You can try Pixie from Nattyware. That is free and they also have a portable version.
截取屏幕截图并在常规或复杂的绘画应用程序中打开它以获取颜色。或者更好:下载图片并在绘画应用程序中打开它。
Take a screenshot and open it in a regular or sophisticated paint application to get the color. Or better: download the picture and open it in a paint application.
截取页面屏幕截图,在 Adobe Photoshop 中打开它,然后使用滴管工具选择该颜色。
颜色对话框将显示十六进制代码、RGB 颜色和 CYMK 颜色代码。如果您没有 Photoshop,也可以在 GIMP 中执行相同操作。
Take a screenshot of the page, open it in Adobe Photoshop and select that color with the dropper tool.
The Color dialog will show you the hexadecimal code, the RGB color and the CYMK color code for that. You can do the same in GIMP if you don’t have Photoshop.