Save() Problem
in
Programming Questions
•
2 years ago
I am making a simple paint program and I finally got around to making the "s" key save the image you have drawn. I have made the sketch resizable and made a max height/width the sketch window could be. Saving the image works fine if the window is the max size I set it, but if I make the window the max size and then draw and then decrease the size and then try to save, it only saves what is seen. That makes sense, but when I made it if you press the "s" key, it will call frame.setSize() and then set it to my max width/height and
then save the image. Instead of saving the the image the size of the window, it saves the the part of the image that you originally pressed "s" on... I've tried a lot of things but I can't figure out how to make it so when you press the "s" key and the window is less than the max size, it will resize and then save the image's new size. If someone could help me, I would be really grateful.
Thanks,
TheGamersHaven
Thanks,
TheGamersHaven
1