How can I save Fbo to disk?

I followed the steps on tutorial on libcinder at link
https://libcinder.org/docs/guides/gl/fbo/index.html

in the last step they call

writeImage( getHomeDirectory() + “myPixels.png”, myFbo->getColorTexture() );
but there is no write image that takes this parameters.

I see this as the possibile alternative but I am not sure how to use the thing, and even if is it corrent one?

writeImage( getHomeDirectory() + “myPixels.png”, myFbo->getColorTexture()->createSource() );

should do the trick.

1 Like

Thanks so much it did actually work!