Hi All,
So im wondering what is the best way to stretch and image in sections in flambe. This is for a scale9 image, so the top, left, bottom & right sections get stretched to the correct size. Ive seen graphics.drawSubTexture, which is almost what im after, except i would also need a destWidth & destHeight, is this something any one has any tips on?
I presume i could also do it by cutting up the image in memory and creating 9 separate textures out of it, then creating ImageSprites from them and using the scaleX/Y to get the required size and put them in a parent sprite, but these seems like real overkill, when all i want is to draw to a sprites graphics in certain ways without all this overhead and creating new textures all over the place.
Any help would be greatly apprecaited!
Cheers,
Ian