making an image (for a border) out of corner and side images
#1
I am wanting to know if the skinning engine can handle an object made from smaller images.

below is roughed out code to show what i am trying to achive.

object = movie frame
object x = 1000
object y = 1500
frame top left image = ("../top_left.png" w=200px h=200px)
align = top left (location inside object)
aspectratio = keep

frame top center image = ("../top_center.png" w=1px h=200px)
align = top (location inside object)
xrepeat = true
aspectratio = keep

frame top right image = ("../top_right.png" w=200px h=200px)
align = top right (location inside object)
aspectratio = keep




below is an image to show what i want to achieve

Image

basically an image that i can just specify the width and height and the images inside the object repeat etc instead of just scaling an image.


I want to use it for a outline that dynamically changes size based on the content inside.

thanks
Reply
#2
You'd use a single texture for that (just combine it all into one) and then you specify the border attribute to indicate how many pixels make up the edges of the image.

Scaling then works exactly how you describe.

You can't do it with separate images.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
jmarshall Wrote:You'd use a single texture for that (just combine it all into one) and then you specify the border attribute to indicate how many pixels make up the edges of the image.

Scaling then works exactly how you describe.

You can't do it with separate images.

thanks ill try that. jsut a small note, if i do that will it stretch it to much and then the corners will distort?
Reply
#4
no you add a border="" to the border image texture
Reply

Logout Mark Read Team Forum Stats Members Help
making an image (for a border) out of corner and side images0