title: Remove white Background in the image still has white edges c#
body: <p>I am trying to write code that would remove the white <code>background</code> from <code>jpeg</code>-images, can save them in same format.</p>
  
  <p>Here is my code so far:</p>
  
  <pre><code>string imgPath = Server.MapPath("~/App_Files/" + Profile.CompanyName + "/Temp/test.jpg");
  Bitmap bmp = RADBase.ImageHandler.LoadImage(imgPath);
  bmp.MakeTransparent(Color.White);
  System.Drawing.Imaging.ImageFormat format = new System.Drawing.Imaging.ImageFormat(Guid.NewGuid());
  bmp.Save(imgPath, format);
  </code></pre>
  
  <p>It removes the white background, but there are still white edges on the image. not sure how to get the complete white background removed?</p>
  
  <p>Here is the image:
  <a href="http://cyphernet.co.za/bg-test/CGU3-black.jpg" rel="nofollow">http://cyphernet.co.za/bg-test/CGU3-black.jpg</a></p>
  
  <p>Here is the result:
  <a href="http://cyphernet.co.za/bg-test/test.jpg" rel="nofollow">http://cyphernet.co.za/bg-test/test.jpg</a></p>