A
aaron.radich
I'm trying to create a bitmap that is defined from an array of bytes,
which are indexed to a ColorPalette. I'm trying to call the following
code, but the 5th parameter of the Bitmap constructor needs to be a
System.IntPtr. You can't pass by reference. How can I create an
IntPtr to the array of bytes (byte[])?
bmpBuffer = new Bitmap(iSCREEN_WIDTH, iSCREEN_HEIGHT, 2,
System.Drawing.Imaging.PixelFormat.Format24bppRgb, ref
objCDG.CDG_ScreenBuffer);
bmpBuffer.Palette = objCDG.Palette;
Aaron
which are indexed to a ColorPalette. I'm trying to call the following
code, but the 5th parameter of the Bitmap constructor needs to be a
System.IntPtr. You can't pass by reference. How can I create an
IntPtr to the array of bytes (byte[])?
bmpBuffer = new Bitmap(iSCREEN_WIDTH, iSCREEN_HEIGHT, 2,
System.Drawing.Imaging.PixelFormat.Format24bppRgb, ref
objCDG.CDG_ScreenBuffer);
bmpBuffer.Palette = objCDG.Palette;
Aaron