getting PImage dimensions?
in
Programming Questions
•
3 years ago
Hello everyone.
I've searched high and low but I cant find a function that returns the original size in pixels of a PImage.
I'm loading an image using loadImage and i need to place it within a defined area but I don't want it to be distorted, so I think i need to know the original dimensions of the image to map them and place it within the desired area but keeping the original proportions (width/height ratio).
Any ideas on how to achieve this?
Many Thanks
Nausk!
1