use original save function when own is also written
in
Programming Questions
•
2 years ago
I have a class, in that class i made a save function.
Now inside that class i also want to use the save function from processing to write a image to the hardDisk.
Now it wants to use my save function instand of processings one.
Afcorse i can rename my save to save2 for example but for the purpose of learning i was wondering if it's still possible to acces processing save function when i also have my own.
very stripped code (just in case someone prefer)
- class GJPG{
- String source;
- byte[] b;
- ArrayList<Glitch> glitches = new ArrayList<Glitch>();
- GJPG(String source){
- this.source = source;
- this.b = loadBytes(source);
- }
- void save(String exportName){
- // do stuff
- };
- // - - - - - - - - - - - - - - - - - - - - - - - - -
- void saveSafe(String exportName){
- save("temp/tmp.jpg");
- PImage img = loadImage("../temp/tmp.jpg");
- // here i want to use processings save function
- //img.save;
- }
- }
1