Page 1 of 1

[SOLVED] Using AspectMode and getting actual size

Posted: Wed Sep 04, 2013 15:41
by MikeSwartz
I have a static image where I'm setting the size to {{1, 0}, {0.08, 0}} but the aspectmode is on shrink so it scales properly to be about a tenth of the screen size in height. I would like to get the newly calculated size in a scale rather than in a pixel offset during run time, but when I run getSize, I just get 1 for the width, not the new width calculated for the proper aspect mode (which should be something close to .08).

What is the best way to get this width value?

Re: Using AspectMode and getting actual size

Posted: Wed Sep 04, 2013 16:39
by Kulik
Hi, try Window::getPixelSize

Re: Using AspectMode and getting actual size

Posted: Fri Sep 06, 2013 15:51
by MikeSwartz
Got it thank you very much!