Askani Posted June 24, 2003 Posted June 24, 2003 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 bitmap's location in memory. What I don't 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 I'm 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 Quote
*Gurus* divil Posted June 25, 2003 *Gurus* Posted June 25, 2003 You'll 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. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.