I apologize for the general nature of this question but I am somewhat lost. In Processing there is PDF Export capability that lets you save directly to PDF a drawn frame of arbitrary size. As far as I can tell no such exporting feature exists.
Here is what I have tried, I am on a MacBookAir running Lion 10.7.3 & Xcode 4.3.2:
ofBeginSaveScreenAsPDF() does as I imagine its name intends and saves only the screen.
So in main.cpp I have:
ofAppGlutWindow window; ofSetupOpenGL(&window, 1000, 5000, OF_WINDOW); // <-------- setup the GL context // this kicks off the running of my app // can be OF_WINDOW or OF_FULLSCREEN // pass in width and height too: ofRunApp( new testApp());
In testApp.cpp: I have code that basically draws two columns of text (TTF) and draws connections between them, I make sure to use either ofGetWindowHeight() or ofGetHeight() to position the y-coordinates.
I have tried using ofxTileSaver and setting it up to save as one large png image:
which it does successfully but doesn’t save any drawn items that are drawn ostensibly outside of the size of the window on my screen.
Additionally I have used the ofImage function grabScreen, which also doesn’t grab any objects drawn outside the window on the screen.
Is this because oF isn’t drawing outside the screen?
If it is not, do I have to draw to a different context (i.e. windowless or FBO). <-Apologies if this makes no sense.
If it does how could I get at it so I can print it out?
Thanks for any assistance,