This site is no longer active and is available for archival purposes only. Registration and login is disabled.

HBITMAP


HBITMAP

Postby moon » Jan 29, 2005 @ 12:34am

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
moon
pm Member
 
Posts: 9
Joined: Jan 29, 2005 @ 12:30am


Postby moon » Jan 29, 2005 @ 1:34am

ok sorry, I found the answer by searching better here:

moon
pm Member
 
Posts: 9
Joined: Jan 29, 2005 @ 12:30am


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum