Saving image at different resolution?


is there a way in OF to save an image at a specified resolution?
I’m grabbing my screen which is 842x596 but I would love to be able to print the image at the same size (it’s A4). for a 300dpi printer it would need to be 3508x2480.
currently I’m saving my image using ofSaveScreen(filename);.
Would there be any other way to do it?


One way to do it is to draw into an ofFbo, this can be any size you want (up to the gfx card limit, usually at least 4k or 8k).

ofFbo has a readToPixels() function that you can use to grab what has been drawn into it into a ofPixels object that you can then save to disk.


Take a look at also this addon, could be useful.