NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 33 34 35 36 37 … 93 Next »
Controlling fixedAspectRatio images in a skin

 
  • 0 Vote(s) - 0 Average
Controlling fixedAspectRatio images in a skin
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#1
2008-03-29, 02:44 AM
Specifically the vertical allignment... I'm using this:
Quote:<DrawImage filename="@AlbumArt" loc="2.5,17" size="26,74" fixedAspectRatio="true" valign="Top"/>
to display images with different aspect ratios, with the overall size being constrained by width.

The width constraint works and the images keep their aspect ratio, but they are always centered vertically - valign doesn't cause an error, but it also doesn't seem to work - what have I missed?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2008-03-29, 02:49 AM
Sorry there is nothing you can do about this, when you use the built in fixedAspectRatio="true" it always centers the image.

If you need better control over the image you'd need to make "@AlbumArt" a callback, and manually create the image with the picture positioned how you want it.
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#3
2008-03-29, 03:14 AM
That's a shame - it seems like something you would want to be able to do (I noticed that it centers horizontally too)... I'll probably take the "fixedAspectRatio" off, constrain by height as well, and let it deform for the moment... however "callback" does look like another interesting avenue of investigation.Big Grin

Are there any other techniques to make the same skin cope with 16:9 and 4:3?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Skin help (correct location?) SFX Group 4 3,830 2018-01-24, 07:42 AM
Last Post: pBS
  skin question pBS 2 3,304 2016-06-18, 07:03 PM
Last Post: pBS
  Images in lists using a lot of memory cncb 4 3,976 2015-11-12, 12:02 AM
Last Post: sub
  Skin - view further into the future, scale the guide Vitenka 5 3,228 2014-11-26, 07:28 PM
Last Post: Vitenka
  Skin element Details in NowNext Jaggy 2 1,772 2011-09-19, 11:50 PM
Last Post: Jaggy
  Skin Help with Line Drawing Northpole 2 1,880 2011-07-19, 05:14 PM
Last Post: Northpole
  Anyone interested in developing a Skin Plugin? Hairy 13 4,923 2011-07-10, 04:13 PM
Last Post: mvallevand
  Skin help needed for EventDetails.xml bgowland 7 3,249 2011-06-26, 11:55 PM
Last Post: Jaggy
  A list of changing images McBainUK 1 1,825 2011-06-21, 04:36 PM
Last Post: sub
  Skin question - how to centre a list UiList control on screen? McBainUK 2 1,811 2011-02-17, 08:46 AM
Last Post: McBainUK

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode