Alessandro Ferreira Guest
|
Posted: Thu Feb 02, 2006 6:28 am Post subject: Help please. |
|
|
Dears,
Could anybody help myself to convert this code in C# for Dephi?
int imageLength = ((byte[])e.image).Length;
imageLeftArr = new byte[imageLength];
Array.Copy((byte[])e.image, imageLeftArr, imageLength);
imHandle = GCHandle.Alloc(imageLeftArr, GCHandleType.Pinned);
scan0 = imHandle.AddrOfPinnedObject();
Bitmap bm = new Bitmap(e.width, e.height, e.width,
PixelFormat.Format8bppIndexed, scan0);
PS. In Delphi, I receive "e.image" as a TBitmap.
Thanks,
[]s,
Alessandro. |
|