Don't know, but, you could for instance create one tile for the left side of the button, one for the right side and then one tile for the "content" part that is stretched. Some game engines like Unity has this built in through 9-patch images. :)
Ohhh ye didnt think of that.Thanks :D