Live video - drawing bitmaps written to memory

Askani

New member
Joined
Jun 24, 2003
Messages
2
Hello everyone; first post.

I am trying to display a bitmap that is stored in memory to a PictureBox (or even as the background image of a form if that proves to be faster).

The bitmap data in memory is constantly being updated (live video). This constant update is being handled by a DLL that I call which returns a pointer to the bitmaps location in memory.

What I dont know how to do is read the memory (using the passed pointer) and form a bitmap image (which could then be displayed in a PictureBox, Form, etc.).

Since Im dealing with live video, I would like to use the absolute fastest method possible.

The bitmap format is 24 bits per pixel. There is no bitmap header, just the actual bits.

Does anyone have any ideas on how to do this?

Thanks,
Askani
 
Youll want to use one of the Bitmap constructors. There is one that accepts the dimensions of the image, the stride, pixel format and the address of the bitmap data.
 
Back
Top