Draw direct in a Image


i want to make a random landscape generator. Is it possible to draw direct to the Image or need i the grabScreen() methode?

Thx for informations.

ciao Darian

The solution is to work with the ofxFBOTexture addon.

Then you can draw in the Buffer like this:

ofxFBOTexture buffer;


ofSetColor(0, 255, 0);
ofRect(0, 0, 50, 50);



I hope this is the right way to work with.

thx and ciao

This wasn’t the correct solution. I dont know how to manipulate the FBO Pixels. There is no methode getPixels() or so…

Help please.
ciao Darian