我想调用一个带有颜色参数的方法。但是有很多颜色只是略有不同。我该如何找到与我的颜色仅略有不同的颜色,例如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);