We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I want to set the size based on an image dimensions.
What am I doing wrong? Error
(if I print the value, it's ok).
def setup():
photo = loadImage("Photo.jpg")
print(photo.height)
image(photo, 0, 0)
Thank you!
Answers
https://Processing.org/reference/settings_.html
https://GitHub.com/processing/processing/issues/4529
https://forum.Processing.org/two/discussion/16705/null-pointer-exception-when-loading-image-in-settings-p3-1-1#Item_1
Ok, I solved putting all in settings().
Thank you.