Page 1 of 1

HBITMAP

PostPosted: Jan 29, 2005 @ 12:34am
by moon
I'm a bit confused about how to go about this. I have an array declared as such:

unsigned char ScreenBuf24[240*180*4];


Using GDI I can display whats in the buffer by making a bitmap like so:

HBITMAP hbmp;
hbmp = CreateBitmap(240,180,1,24,ScreenBuf24);

and doing bitblt and what have you.

How though do I get whats in ScreenBuf24 into a CGapiSurface? Can I create a surface directly with the buffer or bitmap? Or do I need to create a surface and then manipulate the buffer directly?

thanx

PostPosted: Jan 29, 2005 @ 1:34am
by moon
ok sorry, I found the answer by searching better here: