@werty37 wrote:
Hi
I am a newbie in Openframeworks. I was wondering if there is a way to automatically preserve aspect ratio of an Image?
void ofApp::draw(){ image.draw(ofGetWidth()/2 - image.getWidth()/2, ofGetHeight()/2 - image.getHeight()/2, 100, auto?); }
I did search for topics on this is the forum but didn't find anything. Sorry if this is such a noob question.
Thanks
Posts: 2
Participants: 2