【发布时间】:2011-12-12 09:01:06
【问题描述】:
我想调用一个带有参数颜色的方法。但是有很多颜色只有一个阴影不同。我怎样才能找到与我的颜色略有不同的颜色,例如 AntiqueWhite 和 Bisque。 Here's 调色板。
Bitmap LogoImg = new Bitmap("file1.jpeg");//the extension can be some other
System.Drawing.Color x = LogoImg.GetPixel(LogoImg.Width-1, LogoImg.Height-1);
LogoImg.MakeTransparent(x);
image1.Source = GetBitmapSource(LogoImg);
【问题讨论】:
-
使用 R、G 或 B(或全部三个)的最大变化阈值
-
你想对你的结果做什么?
-
@Erno 我看到了,但对我没有帮助。
-
@alexn 获取参数颜色的方法,使该颜色透明。