mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 13:49:18 +01:00
put necessary api vars from PGraphics3 into PGraphics
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user