热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

在Excelvba中更改图片颜色-ChangecolorofpictureinExcelvba

Ihave.pngpictureinExcel.IdliketochangethecolorofpicturebyMacro.我有Excel中的。png图片。我想用宏

I have .png picture in Excel. I'd like to change the color of picture by Macro.

我有Excel中的。png图片。我想用宏来改变图片的颜色。

I am using this code to change colortype:
ActiveSheet.Shapes.Range(Array("Picture 12")).PictureFormat.ColorType = msoPictureGrayscale

我正在使用此代码更改colortype: ActiveSheet.Shapes。范围(阵列(图12)).PictureFormat。ColorType = msoPictureGrayscale

I'd like to change color of the picture to RGB color. I have many pictures and I like to change color for each dynamically, so other tools do not suit for me.

我想把图片的颜色改成RGB颜色。我有很多图片,我喜欢动态地改变颜色,所以其他工具不适合我。

enter image description here

1 个解决方案

#1


1  

Finally I found the way how to do this.

最后我找到了做这件事的方法。

  1. You can take .svg picture which is also vectorial.
  2. 您可以拍摄.svg图像,它也是矢量的。
  3. Convert .svg to .emf.
  4. .转化成.emf。
  5. Import .emf into Excel
  6. .emf导入到Excel

.emf file is supported by Excel and has same features a you draw by using shapes.

.emf文件由Excel支持,具有使用形状绘制的特性。


推荐阅读
author-avatar
94爱拍就是爱拍
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有