Another somewhat simple question.
I have a fbo and I need to capture a rectangular section from it and save it into a texture.
(sort of crop). So I have x,y, width and height (corresponds to ofTexture allocation). What would be the best way to do it ?
Something similar to loadScreenData, but that takes fbo as a source ?
If you want to save it to an image, you can also use ofFbo.readToPixels and pass in an ofImage, either directly or .getPixels() I forget. I think u might need to call .update on the ofImage after as well.
Hmm
I’ve discovered both, but not sure how to combine them actually.
I need transfer part of fbo (or it’s texture) to another texture (not fbo).
Since I can’t draw on texture, I’m not sure how drawSubsection() can be used in this case…