Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PImage to save state of image currently on screen #1

Open
eoinfennessy opened this issue Apr 28, 2022 · 0 comments
Open

Use PImage to save state of image currently on screen #1

eoinfennessy opened this issue Apr 28, 2022 · 0 comments

Comments

@eoinfennessy
Copy link
Owner

The method used to save image on right click is currently a little bit of a hack - it'll always save the last image to be displayed before quitting the program, even if the user has not tried to save an image. This was necessary due to a constraint in the spec for this assignment that ruled out the use of PImage, and also because calling the saveImage() method using a mouse click or key press saves the next frame to be displayed instead of the one currently on screen.

TODO:

  • Replace save frame method with one to copy the state of the currently displayed image to a PImage object
  • Change mousePressed() method to save the PImage to disk after prompting user for filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant