//-------------------------------------------------------------- void gamuzaMain::saveFrame(){ string _d = getDateTimeAsString("%d_%m_%Y"); string start = "export/frames/frame"+ofToString(currentSavedFrame); string fin = start+"_"+_d+".jpg"; currentSavedFrame++; tempFrame.grabScreen(mainScreenW+1,0,projectionScreenW,projectionScreenH); tempFrame.saveImage(fin.c_str()); printf("Frame SAVED\n"); logger.log(99," Frame SAVED"); }
//-------------------------------------------------------------- void gamuzaMain::saveFrame(){ string _d = getDateTimeAsString("%d_%m_%Y"); string start = "export/frames/frame"+ofToString(currentSavedFrame); string fin = start+"_"+_d+".tif"; currentSavedFrame++; if(useSecondaryScreen && useShader){ finalTexture.readToPixels(outputPix); }else{ drawingTexture.readToPixels(outputPix); } tempFrame.setFromPixels(outputPix); tempFrame.saveImage(fin.c_str()); sendPrivateMessage(GAMUZA_CONSOLE_LOG, "Frame SAVED"); sendPrivateMessage(GAMUZA_CONSOLE_LOG, " "); }