需求:将黑色的PNG格式图标,更改为其它颜色
原始图标:
![](https://upload-images.jianshu.io/upload_images/1423917-d59f6ee908fc2b83.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/48/format/webp)
原始图标 - 黑色
方法1:
图层样式 -> 颜色叠加
![](https://upload-images.jianshu.io/upload_images/1423917-317b8c6e5c6760d2.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/459/format/webp)
选择颜色叠加
![](https://upload-images.jianshu.io/upload_images/1423917-5448277e169b5ffa.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/856/format/webp)
选择想要的颜色
方法2:
更换颜色
一、打开图片,点开通道面板,随便选择一个通道(这里选择绿色通道),按住CTRL键,鼠标变化后,点击绿色通道载入选区(这时选中的是图标的背景区域),如果要更改图标主体颜色,需要使用选框工具,点击图片,右键“选择反选”,选中图标本身;
![](http://upload-images.jianshu.io/upload_images/1423917-1a7cf9dfa6e0516f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/240/format/webp)
载入选区
![](http://upload-images.jianshu.io/upload_images/1423917-33c3fe59f547cc9c.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/68/format/webp)
载入选区之后
![](http://upload-images.jianshu.io/upload_images/1423917-40e2e86ce9a325d5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/33/format/webp)
使用选框工具
![](http://upload-images.jianshu.io/upload_images/1423917-2ce3a165508c8d23.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/69/format/webp)
选择反向之后
二、这时再回到RGB通道,执行以下操作:
1)新建图层
![](http://upload-images.jianshu.io/upload_images/1423917-d8bbd7f18e8c2b1b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/246/format/webp)
新建图层
2)使用“油漆桶”工具填充你想要的颜色
![](http://upload-images.jianshu.io/upload_images/1423917-fd68ce025af48bb1.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/30/format/webp)
油漆桶填充颜色
![](http://upload-images.jianshu.io/upload_images/1423917-f95f46022001e68b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/71/format/webp)
填充后
3)取消背景层的显示
![](http://upload-images.jianshu.io/upload_images/1423917-41e753b7ef5f6528.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/254/format/webp)
取消背景图层的显示
![](http://upload-images.jianshu.io/upload_images/1423917-970120d7a2dbf8ec.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/69/format/webp)
改变颜色后的图标
4)另存为PNG,即可完成替换图标颜色
![](http://upload-images.jianshu.io/upload_images/1423917-535ebc89cfcd3bac.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/48/format/webp)
更换颜色后的图标