title: find a color in an image in c#
body: <p>I stumbled across this youtube video here <a href="http://www.youtube.com/watch?v=Ha5LficiSJM" rel="noreferrer">http://www.youtube.com/watch?v=Ha5LficiSJM</a> that demonstrates someone doing color detection using the AForge.NET framework. I'd like to duplicate what that author has done but I'm not sure how to do some image processing.</p>
  
  <p>It would appear that the AForge.NET framework allows you to pull down from the video source the image in a Bitmap format. My questions is could anyone point me in the direction or provide some guidance on how to interrogate a Bitmap object to find specific colors in it? (for example - if there is 'Red' or 'Purple' in the image for X seconds, I'd like to raise an event 'ColorDetected' or so...)</p>
  
  <p>Does anyone have any suggestions on where to start?</p>
  
  <p>Thanks,</p>
  
  <p>-R.</p>
  
  <p>EDIT: Would I need to walk the entire Bitmap object and interrogate each pixel for the color? Like so: <a href="http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.getpixel.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.getpixel.aspx</a></p>