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

Saving screen (or Fbo) every x seconds?

$
0
0

@juss wrote:

Hi! I know how to save an image using key press.

However, I would need it to happen every 1 or 2 minutes without keyboard interaction. The following if statement does not save anything. Any suggestions? Warm thanks!

if (ofGetElapsedTimeMillis() % 60000 == 0){ //
      //  savedImage.save("screenshot.png");
        
        ofPixels pix;
        fbo3d.readToPixels(pix);
        ofSaveImage(pix, ofToString(ofGetFrameNum()) + ".png", OF_IMAGE_QUALITY_BEST);
    }

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles