We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm using SelectInput() for the background of my sketch but with the current settings the given picture has to be 500x500 (size of the window), I'd like to use resize() to change any given picture to 500x500 and use it as background.
My current code is (in which background is a PImage)
void fileSelected(File selection) { if (selection == null) { println("Window was closed or the user hit cancel."); } else { background = loadImage(selection.getAbsolutePath()); } }
Any idea how to change this to use it with resize()?
Thanks!
Answers
http://forum.processing.org/two/discussion/8045/how-to-format-code-and-text
Yes, thanks! Also for the link to the markdown article, stupid I missed that.