Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Screenshots not saved

$
0
0

@Buoyancist wrote:

Hi.

I'm trying to take a simple screenshot with simple code but can't really understand why they aren't saved.

if (key == 'a') {
    ofImage screenshot;
    screenshot.grabScreen(0, 0, ofGetWidth(), ofGetHeight());
    screenshot.save(ofGetTimestampString()+"_screenshot.png");
}

As far as I know they should now be saved into the data folder? Tried with "/"+ofGetTimestampString()+"_screenshot.png"); as well but not working either, the folder remains empty and tried to search with finder and couldn't find any screenshots. What might be the reason?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles