How to Centre images with various aspect ratios

Discussion in 'MediaPortal 1 Skins' started by mickyblue, March 28, 2008.

  1. mickyblue

    mickyblue Portal Pro

    Joined:
    June 13, 2005
    Messages:
    119
    Likes Received:
    15
    Location:
    Brisbane Australia
    Ratings:
    +15 / 0
    Home Country:
    New Zealand New Zealand
    Hi Guys

    Im hoping one of the skinners can help me with something ive been making a few minor alterations to the mypics.xml of the monochrome skin and one problem im having is when i use the <keepaspectratio>yes</keepaspectratio> tag it then places all images from the top left of the X, Y coordinates, where as i would like to have it centered both vertically and horizontally within the frame i have, is there a tag i can use to achieve this or is this simply a limitation of the skinning engine

    i have attached a couple of screen shots that show the problem im having

    hope you can help

    Mickyblue


     

    Attached Files:

    • 1.PNG
      1.PNG
      File size:
      530.5 KB
      Uploaded:
      March 28, 2008
      Views:
      63
    • 2.PNG
      2.PNG
      File size:
      519.1 KB
      Uploaded:
      March 28, 2008
      Views:
      55
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Psycho Reptile
    • Premium Supporter

    Psycho Reptile Retired Team Member

    Joined:
    April 19, 2006
    Messages:
    1,316
    Likes Received:
    783
    Location:
    Cambridge, England
    Ratings:
    +783 / 0
    Home Country:
    United Kingdom United Kingdom
    Add <centered>yes</centered>, see if that helps.
     
  4. mickyblue

    mickyblue Portal Pro

    Joined:
    June 13, 2005
    Messages:
    119
    Likes Received:
    15
    Location:
    Brisbane Australia
    Ratings:
    +15 / 0
    Home Country:
    New Zealand New Zealand
    Hi thanks for that, will give it a try when i return from holiday in New Zealand

    Mickyblue
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!