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
Improvement Suggestions
Rewrite GUIMusicInfo.cs for better skinning ability
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="pilehave" data-source="post: 535734" data-attributes="member: 71550"><p>Hi</p><p></p><p>Currently the code renders music covers with Util.Picture.RenderImage() which means that the cover is rendered on top of any other graphics in the skin. You cannot put the cover behind transparent graphics or anything like that (or even animate it).</p><p></p><p>GUIVideoInfo.cs does it correctly, so this approach would be appreciated. Also, GUIMusicInfo.cs uses a cover grabbed from Amazon, despite the fact that a cover already exists (and this cover is used on every other music-related screen!).</p><p></p><p>The code is this part:</p><p></p><p>[CODE]</p><p> if (null != imgCoverArt)</p><p> {</p><p> float x = (float) imgCoverArt.XPosition;</p><p> float y = (float) imgCoverArt.YPosition;</p><p> int width;</p><p> int height;</p><p> GUIGraphicsContext.Correct(ref x, ref y);</p><p></p><p> int maxWidth = imgCoverArt.Width;</p><p> int maxHeight = imgCoverArt.Height;</p><p> GUIGraphicsContext.GetOutputRect(coverArtTextureWidth, coverArtTextureHeight, maxWidth, maxHeight, out width,</p><p> out height);</p><p></p><p> GUIFontManager.Present();</p><p> Util.Picture.RenderImage(coverArtTexture, (int) x, (int) y, width, height, coverArtTextureWidth,</p><p> coverArtTextureHeight, 0, 0, true);</p><p> }</p><p>[/CODE]</p><p></p><p>I tried correcting it myself, but it was more complicated than I thought...</p></blockquote><p></p>
[QUOTE="pilehave, post: 535734, member: 71550"] Hi Currently the code renders music covers with Util.Picture.RenderImage() which means that the cover is rendered on top of any other graphics in the skin. You cannot put the cover behind transparent graphics or anything like that (or even animate it). GUIVideoInfo.cs does it correctly, so this approach would be appreciated. Also, GUIMusicInfo.cs uses a cover grabbed from Amazon, despite the fact that a cover already exists (and this cover is used on every other music-related screen!). The code is this part: [CODE] if (null != imgCoverArt) { float x = (float) imgCoverArt.XPosition; float y = (float) imgCoverArt.YPosition; int width; int height; GUIGraphicsContext.Correct(ref x, ref y); int maxWidth = imgCoverArt.Width; int maxHeight = imgCoverArt.Height; GUIGraphicsContext.GetOutputRect(coverArtTextureWidth, coverArtTextureHeight, maxWidth, maxHeight, out width, out height); GUIFontManager.Present(); Util.Picture.RenderImage(coverArtTexture, (int) x, (int) y, width, height, coverArtTextureWidth, coverArtTextureHeight, 0, 0, true); } [/CODE] I tried correcting it myself, but it was more complicated than I thought... [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
Rewrite GUIMusicInfo.cs for better skinning ability
Contact us
RSS
Top
Bottom