Automatically scale an image to fit window
in
Programming Questions
•
3 years ago
I'm loading an svg (though could be an image) into processing and centering it onto the screen (600x600). As I've made my graphic small enough to fit the screen I have no problems but eventually I want to be able to load any svg of any size and have it automatically fit to the size of the screen (proportionally), probably with a bit of a border. Is there any way to do this? I've tried scale() but it doesn't seem to have an option to scale to screen size
1