R
Rainer Queck
Hi NG,
is there a way to copy a buffer pointed to by a IntPtr directly into a two
dimensional byte-array?
I tried this, what obviously doesn't work:
byte[,] image = new byte[numLine,lineLength];
IntPtr p = <hardwareDeviceClass>.GetBufPtr();
Marshal.Copy(p,image,0,numLine*lineLength);
thanks for help
Rainer
is there a way to copy a buffer pointed to by a IntPtr directly into a two
dimensional byte-array?
I tried this, what obviously doesn't work:
byte[,] image = new byte[numLine,lineLength];
IntPtr p = <hardwareDeviceClass>.GetBufPtr();
Marshal.Copy(p,image,0,numLine*lineLength);
thanks for help
Rainer