working on pdf integration and record() stuff.. tweaking up api

This commit is contained in:
benfry
2006-01-11 18:15:58 +00:00
parent 9e1a8a38ee
commit 68808f9e79
10 changed files with 177 additions and 121 deletions

View File

@@ -3537,4 +3537,11 @@ public class PGraphics extends PImage implements PConstants {
throw new RuntimeException("recordRaw() not supported " +
"by this renderer.");
}
public PGraphics recordRaw(String renderer, String filename) {
PGraphics rec =
PApplet.createGraphics(width, height, renderer, null, filename);
recordRaw(rec);
return rec;
}
}