title: Converting an image pixel from color ARGB to grayscale ARGB manually
body: <p>So I've got a project to convert an image to black and white manually by altering the argb values with an algorithm.  I've tried averaging the RGB values and I come out with an almost completely grayscale image but there's still hints of color in it. Anyone have any algorithm examples to convert a pixel in aRGB to greyscale manually?</p>
  
  <p>This is what I've been doing so far:</p>
  
  <pre><code>            //Apply the filter
              reds = ((reds+greens+blues)/3);
              greens = ((reds+greens+blues)/3);
              blues = ((reds+greens+blues)/3);
  </code></pre>