How to turn ofFbo to ofImage?

How to turn ofFbo to ofImage?

Hi!

You can read an ofFbo into an ofPixels object, which you can use to set the pixels of an ofImage, so a combination of these two should do it:

http://openframeworks.cc/documentation/gl/ofFbo/#show_readToPixels
http://openframeworks.cc/documentation/graphics/ofImage/#show_setFromPixels

1 Like

Hi

Thanks so much for link i was very lost.

ofPixels pixels;
fbo.readToPixels(pixels);
img.setFromPixels(pixels);

Did the trick