You can use a shader effect to remove a specific color. Luckily this type of shader is part of the WPF Pixel Shader Effects Library - http://www.codeplex.com/wpffx which is available free of charge. The effect that you should look at is called ColorKeyAlpha.
Here you can find more info on the subject and if you are new to shaders this blog series has all the information you will need -
发布评论
评论(1)
您可以使用着色器效果来删除特定颜色。幸运的是,这种类型的着色器是 WPF 像素着色器效果库的一部分 - http://www.codeplex.com/wpffx 这是免费提供的。您应该查看的效果称为 ColorKeyAlpha。
这里可以找到有关该主题的更多信息,如果您不熟悉着色器此博客系列包含您需要的所有信息 -
You can use a shader effect to remove a specific color. Luckily this type of shader is part of the WPF Pixel Shader Effects Library - http://www.codeplex.com/wpffx which is available free of charge. The effect that you should look at is called ColorKeyAlpha.
Here you can find more info on the subject and if you are new to shaders this blog series has all the information you will need -