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!)
How to set an image center/fullscreen?
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="jmbillings" data-source="post: 974631" data-attributes="member: 76827"><p>Thanks guys- I thought about setting the width/height, but then I'm concerned the image will be cropped on, say, 1280x720 screens? I should add, this isn't a fixed size image as a skin background for example, it's a plugin to display images from a resource that could potentially be any size/aspect ratio.</p><p>I may be better off scaling in code if this is the case- if so, is there an easy way to obtain the current window width/height from within my plugin? I can work out the rest <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p> </p><p>(If I'm doing this completely arse-about-face, also shout of course! - basically my plugin grabs an image from online and displays it- I want to to fill the screen on it's longest side, keeping aspect ratio. Think of it like a full-screen photo viewer in simple terms)</p></blockquote><p></p>
[QUOTE="jmbillings, post: 974631, member: 76827"] Thanks guys- I thought about setting the width/height, but then I'm concerned the image will be cropped on, say, 1280x720 screens? I should add, this isn't a fixed size image as a skin background for example, it's a plugin to display images from a resource that could potentially be any size/aspect ratio. I may be better off scaling in code if this is the case- if so, is there an easy way to obtain the current window width/height from within my plugin? I can work out the rest :) (If I'm doing this completely arse-about-face, also shout of course! - basically my plugin grabs an image from online and displays it- I want to to fill the screen on it's longest side, keeping aspect ratio. Think of it like a full-screen photo viewer in simple terms) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
How to set an image center/fullscreen?
Contact us
RSS
Top
Bottom