Resizeable image problem in resizable skin

About usage, announcement and development of skins for VLC
pjn123
Blank Cone
Blank Cone
Posts: 15
Joined: 13 Nov 2006 16:10
VLC version: 0.9.2
Operating System: Windows XP
Location: Cape Town, South-Africa
Contact:

Resizeable image problem in resizable skin

Postby pjn123 » 03 Oct 2008 23:18

I'm trying to resize the center image for this layout:
Image

Here is my code so far:

Code: Select all

<!--Background--> <Image x="0" y="0" image="normal.topleft" lefttop="lefttop" rightbottom="lefttop" action="move"/> <Image x="143" y="0" image="normal.top" lefttop="lefttop" rightbottom="righttop" action="move" resize="scale"/> <Image x="143" y="0" image="normal.topright" lefttop="righttop" rightbottom="righttop" action="move"/> <Image x="0" y="100" image="normal.left" lefttop="lefttop" rightbottom="leftbottom" action="move" resize="scale"/> <Image x="6" y="100" image="normal.center" lefttop="lefttop" rightbottom="rightbottom" action="move" resize="scale"/> <Image x="311" y="100" image="normal.right" lefttop="righttop" rightbottom="rightbottom" action="resizeE" resize="scale"/> <Image x="0" y="100" image="normal.bottomleft" lefttop="leftbottom" rightbottom="leftbottom" action="move"/> <Image x="157" y="100" image="normal.bottom" lefttop="leftbottom" rightbottom="rightbottom" action="resizeS" resize="scale"/> <Image x="157" y="100" image="normal.bottomright" lefttop="rightbottom" rightbottom="rightbottom" action="resizeSE"/>
Now my problem is that the "normal.center" image stretch width is equal to the width between the topleft & topright and not the left & right.
Is there anyway I can correct this?

I'm used to Winamp Skinning where you can just set x/y and w/h of the image so its very easier ;)

Here is how it looks atm:
Image

The source image CANT be changed since this will brake the whole project of converting Winamp ClassicPro skins to VLC ;)

Thanks for any help!

pjn123
Blank Cone
Blank Cone
Posts: 15
Joined: 13 Nov 2006 16:10
VLC version: 0.9.2
Operating System: Windows XP
Location: Cape Town, South-Africa
Contact:

Re: Resizeable image problem in resizable skin

Postby pjn123 » 04 Oct 2008 01:03

Ok made some progress with this.

This is how the code should look for image="normal.center":

Code: Select all

<Image x="6" y="100" width="305" height="0" image="normal.center" lefttop="lefttop" rightbottom="rightbottom" resize="mosaic"/>
But VLC dont use the width="305" height="0" params on the image! Tested the above by changing the <image to <video and its works perfectly.

So is this a VLC bug?

Here is a link of a bunch of ClassicPro skins for Winamp:
http://www.antaeus.dk/bin/cpro_skins_rev3.png

The idea is that these will just work in vlc when the project is finished.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Resizeable image problem in resizable skin

Postby Jean-Baptiste Kempf » 04 Oct 2008 21:13

This is probably a VLC/skin bug. I'll ask ipkiss to look at it.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

3breadt
Big Cone-huna
Big Cone-huna
Posts: 827
Joined: 19 Mar 2006 11:37
Operating System: Win7 Pro / OS X 10.7
Location: Paderborn, Germany
Contact:

Re: Resizeable image problem in resizable skin

Postby 3breadt » 05 Oct 2008 18:26

That is not a bug, it's a missing feature.
Skins2 does not support setting width and height attributes to images. By default they always appear in the resolution of the associated bitmap resource.

You could try doing a SubBitmap of the source file with the given width/height. But that would only work for those images that are designed in a way that when resizing they can be repeated.
-- 3breadt (aka altglass)

pjn123
Blank Cone
Blank Cone
Posts: 15
Joined: 13 Nov 2006 16:10
VLC version: 0.9.2
Operating System: Windows XP
Location: Cape Town, South-Africa
Contact:

Re: Resizeable image problem in resizable skin

Postby pjn123 » 06 Oct 2008 14:12

Thx for the info ;)

Cant change the source image. Hope the width & height param can be implemented in the future. Other objects already resize correct and images can be resized so all the tec is there... just needs to be implemented :D

VLC skinning is really very easy and VLC still opens just as fast so really hope that the skins engine development will get some attention :D


Return to “Skins”

Who is online

Users browsing this forum: No registered users and 4 guests