如何改变在WPF图像的颜色? [英] How do you change the color of an Image in WPF?

查看:965
本文介绍了如何改变在WPF图像的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个PNG图片,这只是白色的,透明的,我想知道是否有一个简单的方法,使绿色的透明,红色的透明,等等,所以我不需要使单独的.png文件每种颜色。

I have a .png image that's just white-on-transparent, and I'm wondering if there's an easy way to make that green-on-transparent, red-on-transparent, etc so I don't need to make separate .png files for each color.

推荐答案

这些CodeProject上文章看看

Take a look at these CodeProject Articles

  • Image Processing Lab
  • ImageMagic-WPF Image Color Spaces

图像处理实验室是用于图像处理的简单工具,
包括不同的过滤器和工具来分析
的AForge.NET框架可用图像。

Image Processing Lab is a simple tool for image processing, which includes different filters and tools to analyze images available in the AForge.NET framework.

您也可以看看在 FormatConvertedBitmap ,的 Col​​orConvertedBitmap 或的 WritableBitmap 类的

You could also take a look at the FormatConvertedBitmap, ColorConvertedBitmap or WritableBitmap Class's

这篇关于如何改变在WPF图像的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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