title: c# finding similar colors
body: <p>I want to call a method with argument color. But there are a lot of colors which differ only by a shade. How can I find the colors which differ from my color only by little, for example AntiqueWhite and Bisque. <a href="http://www.flounder.com/csharp_color_table.htm" rel="noreferrer">Here's</a> the color palette.</p>
  
  <pre><code>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);
  </code></pre>