creating a Bitmap or DIB from an Pixel Array
Posted on 1997-11-19
I've got an array of Bytes with i.e. 256x256 bytes that I'm receiving via TCP during program run, each byte representing one pixel with 256 grayscales. Now I want to put this array into a TBitmap or TDib instance, in order to be able to include it into a Window (TPictureWindow).
What must I do in order to get the pixel data into a defined structure of type TBitmap or TDib?