1
Graphics / Re: Preserve aspect ratio / letterboxing?
« on: November 25, 2014, 03:11:19 am »
I am not quite sure.
Like I said, my main objective is to have all of my sprites maintain their aspect ratio when being resized as opposed to stretching to conform to the bounds of the window. If the aforementioned sprites do maintain their aspect ratio, this would result in a letterbox effect. For example, a sprite drawn at the size of 960x540 in a window of the same size, upon the window being resized to 1024x768, would result in black bars along the bottom and top of the window.
I do not quite understand how to accomplish this with views.
Like I said, my main objective is to have all of my sprites maintain their aspect ratio when being resized as opposed to stretching to conform to the bounds of the window. If the aforementioned sprites do maintain their aspect ratio, this would result in a letterbox effect. For example, a sprite drawn at the size of 960x540 in a window of the same size, upon the window being resized to 1024x768, would result in black bars along the bottom and top of the window.
I do not quite understand how to accomplish this with views.