How to stretch images to a perspective

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Senior Member
Posts: 105
Joined: Nov 2010
Reputation: 1
Post: #1

I wasn't able to find something about this in the wiki or forums, or maybe I searched for the wrong keywords.

What I want to do is to stretch an image so that its left sides height is 100% and its right sides hide is something smaller (like 80%). In orther words: I want to transform it in perspective like for example AEON Nox does in the Caroussel-View.

I tried this (since it seems AEON does it the same way):

        <control type="image">
            <texture diffuse="other_textures/diffuseMask.png" fallback="DefaultAddonNone.png">$INFO[Container(50).Listitem(-1).Icon]</texture>
            <aspectratio scalediffuse="false">stretch</aspectratio>

My diffuse mask containts a white transformed square on transparent background. The problem is that the image is just cropped, so that the diffuse mask works exactly as described in the wiki (white pixels are shown, transparent ones are not).

But how did Aeon achieve this o.รณ
find quote
Team-XBMC Skinner
Posts: 5,291
Joined: Jun 2006
Reputation: 60
Location: Earth
Post: #2
You need to use a conditional rotate animation on the control with the condition set to "true" so its always like it
find quote
Senior Member
Posts: 105
Joined: Nov 2010
Reputation: 1
Post: #3
Thank you!

That was much easier then expected ^^'
find quote