saveFrame() only part of the screen?

edited March 2018 in Questions about Code

Hello everyone!

I'm currently writing a program in which I need to save half of the program's frame to an image when the user clicks. Using saveFrame() I've got it saving the whole image (as it is expected with that method). Is there any way to set pixel boundaries when saving a frame?

Thanks in advance!

Answers

  • You can use the get(x, y, w, h) function to create a PImage from only part of the screen, and then save that PImage to a file.

  • Worked perfectly! Thank you so much!!

Sign In or Register to comment.