Original Post
Hello, I have a question about using DirectX to show a live video stream. I have some C# code that grabs 1024x768 14-bit video from a frame grabber (hardware can run at 50 Hz), and am generating an 8-bit grayscale bitmap that I'm updating in a windows form. I'm using unsafe code to update the bitmap, and can get around 15 fps update rate using GDI. Problem is, this is still too slow (and I think I'm dropping frames). My question is: how should I go about implementing DirectX to get around all the GDI overhead. I've looked at SlimDX, but am having trouble finding routines that update pixel by pixel point values every frame vs texturing etc. I'd prefer to stay in managed code (since my GUI is already in c#), but can do c++ if necessary. Can you point me in the right direction? Thanks in advance. Billy