HBITMAP CreateBitmap(
int nWidth, // bitmap width, in pixels
int nHeight, // bitmap height, in pixels
UINT cPlanes, // number of color planes
UINT cBitsPerPel, // number of bits to identify color
CONST VOID *lpvBits // color data array
);
Have a look at the CreateBitmap (shocking name, I know) command - you can specify a pointer to data which will make up the bitmap. There are some issues with it - you'll need the data to match the bits per pixel, etc. Or CreateDIBitmap may be better for you. You'll have to transform you data into a format those command will be happy with though - and how hard that is depends on how "friendly" your format is. If you search codeproject by author for PJ Arends, you can use his Image Viewer article to help you. It's great if you're fiddling about with DCs, and Bitmaps - it's saved hours of development for me in the past. Iain.