如何改变在WPF图像的颜色? [英] How do you change the color of an Image in 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 ,的 ColorConvertedBitmap 或的 WritableBitmap 类的
You could also take a look at the FormatConvertedBitmap, ColorConvertedBitmap or WritableBitmap Class's
这篇关于如何改变在WPF图像的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!