We are about to switch to a new forum software. Until then we have removed the registration on this forum.
So I have this:
PImage img;
void setup(){
img = loadImage("rock.jpg");
selectOutput("Select a file to write to:", "fileSelected");
}
void draw(){}
void fileSelected(File selection) {
if (selection == null) {
println("Window was closed or the user hit cancel.");
} else {
println("User selected " + selection.getAbsolutePath());
PImage.save(selection.getAbsolutePath());
}
}
and I was thinking it should work, however I'm just met with "Cannot make a static reference to the non-static method save(String) from the type PImage"
Is there a way to select save destination?
Answers
I would guess that it should be img.save(...) rather than PImage.save(...)
oops haha thanks...