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

Screen image to and from memory buffer


Screen image to and from memory buffer

Postby nightcat » Oct 6, 2004 @ 7:17am

nightcat
pm Member
 
Posts: 21
Joined: Oct 6, 2004 @ 7:10am


Postby Kzinti » Oct 7, 2004 @ 1:50am

You need to create a rasterizer (or use the display's one) to blit to your surface:

1) Create the surface you want to blit to
2) display->SetRenderTarget( your surface );
3) Blit the backbuffer to it with display->Blit( backbuffer );
4) Restore the rasterizer to the backbuffer (display->SetRenderTarget(0)

To bring back your saved copy to the screen, and assuming your render target is back to the backbuffer, a simply display->Blit( your surface ) will do.

Let me know if anything isn't clear to you.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

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