how to convert bitmap to intptr in C#

Posted by carl on Stack Overflow See other posts from Stack Overflow or by carl
Published on 2010-06-03T01:12:29Z Indexed on 2010/06/03 1:14 UTC
Read the original article Hit count: 275

Filed under:

code as fellow: Bitmap bmp = new Bitmap(e.width, e.height, System.Drawing.Imaging.PixelFormat.Format24bppRgb); System.Drawing.Imaging.BitmapData data = bmp.LockBits(new Rectangle(0, 0, e.width, e.height), System.Drawing.Imaging.ImageLockMode.ReadWrite, System.Drawing.Imaging.PixelFormat.Format24bppRgb); int dataLength = e.width * e.height * 3; Win32.memcpy(data.Scan0, (IntPtr)e.data, (uint)dataLength); convertBitmapToIntptr(bmp);????? how to code in this function like convertBitmapToIntptr(bmp). who give me some idea. thank you very much.

© Stack Overflow or respective owner

Related posts about c#