Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

ofImage resize is so inefficient,any ideas?

$
0
0

may be this is ok:

ofFbo fbo;
fbo.allocate(src.getWidth()/8,src.getHeight()/8);
fbo.begin();
ofScale(1.0/8,1.0/8);
src.draw(0,0);
fbo.end();

ofPixels pix;
fbo.readToPixels(pix);

dst.setFromPixels(pix);

Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>