alexche8 Posted March 22, 2017 Share Posted March 22, 2017 Hello everyone! Is there a way to change canvas size to preloaded background image size? And only after that do the code at create function. Thanks. Link to comment Share on other sites More sharing options...
wo997 Posted March 22, 2017 Share Posted March 22, 2017 Try using img.naturalWidth, img.naturalHeight, is it enough? Is there a problem with making canvas of that size now? Link to comment Share on other sites More sharing options...
Recommended Posts