I have tried the getpixel method, and averaged the RGB components to get a gray scale value in for every pixel. This takes a few seconds as it goes through every pixel. However, for my application, time is critical. I am wondering if there is a fast way to achieve it. Thanks.
Is there a fast way to convert a bitmap image to a grayscale or binary image?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

AlanRank #669 · 3.6K reputationPosted Oct 3, 2007, 4:47 AM EDT
Check out the second approach (with the amended ColorMatrix) in this Bob Powell article:
http://www.bobpowell.net/grayscale.htm
Sandy Lai3 reputationPosted Oct 4, 2007, 3:13 AM EDT
This is an excellent example, and it is just what I needed.
Thanks a lot.