PocketMatrix forums

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

I wanr to dump the gapi screen memory to a bitmap...

I have written a bit of code which dumps the gapi screen memory to an uncompressed .bmp file.

Unfortunately, when I do this, the resultant screen is :

a)Very dimmed down compared to what i see on the ipaq
b)Has a strong preference towards the green component of the RGB pixel value.

I thought I understood the pixel format to be 5 6 5 bits for R G and B respectively...but, the extra bit in the G component adds complexity.

How can I adjust the G value, so that my resultant bitmap looks ok?

Has anyone already got some code to do this screen dump?

dd
There _is_ an internal method for screendumps:

CGapiSurface.SaveSurface(const TCHAR* pBitmapFile)

-- GR
dodgyposse · 25 Feb 2003, 15:17 UTC — confused
Hi,
As I understand it, using gapi, you get a pointer to video memory, and some routines to fill in some data structures....

Nowhere have I had an object returned to me....
When i searched msdn for CGapiSurface...nothing????

dd
CGapiSurface is the surface class for GapiDraw. You can find details for it in the GapiDraw docs.

--GR