Register
Site Login
Site Search
Forums
Advertisement
Welcome to PocketMatrix. PocketMatrix is dedicated to providing the best online community for mobile device developers and enthusiests. What's new?

Taking screenshot


Taking screenshot

Postby BIGBEN » Nov 27, 2006 @ 10:50pm

Kzinti this question is mainly to you:

Code: Select all









10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
//adding to Rasterizer.cpp
const Surface * Rasterizer::GetScreenshot()
{
    return m_surface;
}

//in the GameLoop()

    Display* display = GetDisplay();

    //draw everything here

    if(bGetScreenshot)
    {
        SaveImage(display->GetScreenshot() , pathname);
        bGetScreenshot = false;
    }
    display->Update();

19 lines; 4 keywds; 0 nums; 32 ops; 0 strs; 3 coms    Syntactic Coloring v0.4 - Dan East  


I just need a fast way of taking screenshot on VGA devices

Is it always a safe way, assuming I'm doing GetScreenshot() after GetDisplay() but before the Update()?

Thanks.
User avatar
BIGBEN
pm Member
 
Posts: 281
Joined: Mar 18, 2003 @ 10:18pm
Location: Saint-Petersburg, Russia


Postby Kzinti » Nov 28, 2006 @ 2:42am

Yes, this should work well.
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

cron