Image not showing correctly, don't know why.

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Advocate Offline
Senior Member
Posts: 117
Joined: Mar 2009
Reputation: 0
Location: Hartlepool, United Kingdom
Post: #1
Hi again everyone, you all sick of me yet?

Sorry for YET ANOTHER question but I have the following problem.

I have an image which is 1882 x 1 pixels in size, I have it positioned in my code as follows

Code:
<control type="image">
        <posx>17</posx>
        <posy>75</posy>
        <width>1882</width>
        <height>1</height>
        <aspectratio>stretch</aspectratio>
        <texture>widesep.png</texture>
    </control>

All seems fine right?

When this is displayed it is only showing the left half of the image stretched over 1882 pixels and I can't understand why. I've tried with and without the <aspectratio> tag, I've tried resaving the file as a jpeg, I've tried without the <width> and <height> tags (which only made things worse) and I just can't figure out what is going on.

Please help. Sorry to be a nuisance like this.

Alistair
find quote
Advocate Offline
Senior Member
Posts: 117
Joined: Mar 2009
Reputation: 0
Location: Hartlepool, United Kingdom
Post: #2
Hmmm I solved it by adding some transparent space around the 1px high image, apparently xbmc doesn't like images 1px high, weird.
find quote