put necessary api vars from PGraphics3 into PGraphics

This commit is contained in:
benfry
2005-06-08 21:10:52 +00:00
parent 32c5ffa260
commit 9f220a8fbc
6 changed files with 200 additions and 260 deletions

View File

@@ -1559,10 +1559,11 @@ public class PImage implements PConstants, Cloneable {
public void save(String filename) { // ignore
boolean success = false;
try {
OutputStream os = null;
boolean success = false;
if (filename.toLowerCase().endsWith(".tga")) {
os = new BufferedOutputStream(new FileOutputStream(filename), 32768);
success = saveTGA(os, pixels, width, height);