Hi! I am working on a project and would be happy to hear suggestions for a "good" way of implementing the following:
I am trying to develop a c# windows forms application which takes a 16bpp color video and shows it as a grayscale image with 256 shades of gray. I would like to be able to analyse the pixels of each image of the video. Right now I am using the avi file library to access the video, convert each frame to grayscale using the ColorMatrix class and then analyse the image by using GetPixel on a RGB8 bitmap. However this is kind of slow. I read that DirectX is a faster way in accessing a video. My questions are: Can I output a AudioVideoPlayback video into an 8bit grayscale Systems.Drawing.Bitmap using Format8bppIndexed as Pixelformat? How would I accomplish that? I'd be happy about any hint. You don't have to code for me :-) Or asked in a different way: What would be a fast way to render a color video to a grayscale bitmap? Many thanks! Sebastian
