2D Transformations
See the page I wrote about 2D transformations
PGraphics
PGraphics allows you to draw thing into a buffer outside of the main window. This could also be used to save image files from your program with transparent background. See the Processing reference.
PDF Export
You can also export PDF files from Processing See the Processing Reference