void trySaveImage() {
if(mouseX > width-40 && mouseY < 40) {
PImage drawWindow = get(20, top, width-20, height-top);
drawWindow.save("drawing.png");
}
}
Now I just have to figure out how to load the saved image...
Learning by Creating
void trySaveImage() {
if(mouseX > width-40 && mouseY < 40) {
PImage drawWindow = get(20, top, width-20, height-top);
drawWindow.save("drawing.png");
}
}
No comments :
Post a Comment