ofImage grabScreen doesn't work when ofSetBackgroundAuto(false)

hi,
Forgive my poor English.
There is a serious problem.
When I use ofSetBackgroundAuto(false), the method ofImage_::grabScreen(int _x, int _y, int _w, int _h) doesno’t work, it just return background color but screen shot image.
I would appreciate it if you could give me a bit of good advice.

1 Like

depending on the platform ofSetBackgroundAuto will disable double buffering which is needed in order to use grabScreen. the easiest way to solve this is to draw to an fbo and then read that back into an ofPixels.

3 Likes

thanks a lot.
my platform is win8.1 + vs2013.
I have sloved this problem using your solutions.
thanks again.