04-09-2003, 05:43 AM -
I'd recommend allowing the user to specify one image with seperate borders for left, right, top, and bottom. TLB could then internally split the image into 9 seperate pieces using those values. There would be a top left piece as wide as the left border and as tall as the top border, and so on. The pieces in the middle of the edges could then be stretched or tiled in one direction to fill the available space, and the piece in the middle would be stretched or tiled in both directions to fill. I also recommend allowing the user to select whether to stretch or tile. Tiling is easier on resources, but there are some situations when stretching is necesary.