PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

HBITMAP

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
ok sorry, I found the answer by searching better here:

http://www.pocketmatrix.com/forums/viewtopic.php?t=4736&highlight;=surface+hbitmap