A read cross were displayed(nothing) and exception raise after
pictureBox->set_Image(myBit2);
System.InvalidOperationException
"Ken Alverson" <Ke*@Alverson.net> schrieb im Newsbeitrag
news:ep**************@TK2MSFTNGP10.phx.gbl...
"Soja" <so*****@web.de> wrote in message
news:e9**************@TK2MSFTNGP12.phx.gbl... How can i create a Bitmap from a rawbuffer-BYTE* (from framegrapper).
I do following:
Bitmap *myBit2 = new
Bitmap(wImage,hImage,wImage*sizeof(BYTE),PixelForm at::Format8bppIndexed
,(IntPtr)pbyteBuffer);
pictureBox->set_Image(myBit2 );
the Bitmap were not correct displayed
Perhaps if you told us how it was being displayed. Wrong colors? Upside
down? Backwards? Not the image at all (garbage)?
Ken