I see I can use the BitmapData associated with a Bitmap to modify the data of a bitmap. I have constructed a Bitmap of the correct size, and I have an array of byte data which is organized correctly for the Bitmap I want to create.
Since I am working in C++, if I use the scan0 returned from the BitmapData, can I use memcpy to transfer my image data into the bitmap? The scan0 field of the BitmapData returns an IntPtr. Can I use memcpy with an IntPtr to copy my unmanaged data into the bitmap?
thanks
Bryan
Since I am working in C++, if I use the scan0 returned from the BitmapData, can I use memcpy to transfer my image data into the bitmap? The scan0 field of the BitmapData returns an IntPtr. Can I use memcpy with an IntPtr to copy my unmanaged data into the bitmap?
thanks
Bryan