I guess I should probably better explain how the system works. Attached is a breakdown of the problematic borderpic.
Here are the actual coordinates:
0,0,224,24
224,0,231,24
231,0,245,24
231,24,245,62
107,62,245,88
14,62,107,88
0,62,14,88
0,24,14,62
14,24,231,62
(probably won't match the image exactly).
You pass in a position, width, height, and scale to the function. The scale is 1.0 in this case, so it's not really a factor. The code goes through and calculates the total width and height of the bpic, gets the difference, and stretches the center sections to fit the desired width and height. The problem I'm having is that the image is ending up too large...