home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
New screen ratio for 16:9 screens - Zoom to 14:9
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Grunt" data-source="post: 60937" data-attributes="member: 17604"><p>It only enlarges the image by 12.5%, keeping the original aspect ratio intact. So there's only zoom and no horizontal strech, because I wanted this code to be usable on 4:3 screens as well when watching 14:9 shows, it will maximize the image height to screen height and will crop a little at the sides. If a little strech was used, more would be croped at sides on a 4:3 screen. Also, more would be cropped at sides on a 16:9 screen if watching a 2.35:1 movie using this screen ratio.</p><p></p><p>If anyone wants to add a little horizontal strech, just multiply the new image width by the amount of strech needed. For example, for a 5% strech:</p><p>[code]fNewWidth = fNewHeight * fOutputFrameRatio * 1.05f;[/code]</p></blockquote><p></p>
[QUOTE="Grunt, post: 60937, member: 17604"] It only enlarges the image by 12.5%, keeping the original aspect ratio intact. So there's only zoom and no horizontal strech, because I wanted this code to be usable on 4:3 screens as well when watching 14:9 shows, it will maximize the image height to screen height and will crop a little at the sides. If a little strech was used, more would be croped at sides on a 4:3 screen. Also, more would be cropped at sides on a 16:9 screen if watching a 2.35:1 movie using this screen ratio. If anyone wants to add a little horizontal strech, just multiply the new image width by the amount of strech needed. For example, for a 5% strech: [code]fNewWidth = fNewHeight * fOutputFrameRatio * 1.05f;[/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
New screen ratio for 16:9 screens - Zoom to 14:9
Contact us
RSS
Top
Bottom