相关疑难解决方法(0)

c#找到相似的颜色

我想用参数颜色调用一个方法.但是有很多颜色只有阴影才有区别.我怎样才能找到与我的颜色不同的颜色,例如AntiqueWhite和Bisque.这是调色板.

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);
Run Code Online (Sandbox Code Playgroud)

c# colors

6
推荐指数
2
解决办法
1万
查看次数

标签 统计

c# ×1

colors ×1