title: How do I get the background color of Bitmap Image in c#?
body: <p>I have the following code-</p>
  
  <pre><code>Bitmap img = new Bitmap(ControlsMap.BtnYes.CaptureImage());
  img.Save(@"E:\images\btnyes.png");
  </code></pre>
  
  <p>The image is also captured and saved correctly -<br/>
  <img src="https://i.stack.imgur.com/VObX4.png" alt="enter image description here"><br/><br/>
  I want to get the background color of the image.</p>
  
  <p>I tried several variations of the following line -</p>
  
  <pre><code>var a = img.Palette.Entries;
  </code></pre>
  
  <p>but I'm unable to get background color of the image. Is there any other way?</p>