im trying to make screenshots using ofImage.grabbScreen() and ofImage.saveImage() but cant seem to figure out how to save them not showing gui (im using official addon ofxGui). I tried making bool variable that would stop gui from drawing for a frame when i press the button “save screenshot” but that doesnt work. Im a bit stuck here, any help would be very much appreciated.
Second issue i have is resolution of screeshots. Im drawing thin polylines but screenshots seem to have problem of displaying them, they are kind of dashed. Im enclosing screenshot:
thanks guys for your replies, i figured out that problem with resolution of screenshots is somehow connected to the os because i tried making screenshots on mac and the problem did not occur. Dont know why…
I’ve been using this for the last few weeks without any issue. My fileName string variable is declared as a global variable and set in setup but you can omit that.