Calculating 9-slice

I’ve tried many coordinates, none have worked. I’m trying to 9-slice a 67x67 image to keep the corners the same resolution, but I can’t seem to find an equation on how to calculate the 9-slice.

Here are my questions:

  • How would I calculate the X0, and Y0, X1, Y1
  • How do I determine what to calculate

Please don’t link me that 9-slice article. I’ve read over it so many times and still don’t under stand it.

Thanks,

  • Skylexion

Here a couple things I found on 9-slice that might help you

For your case 67x67, you could try a 9-slice of 33.5,33.5,33.5,33.5 but I’m not an expert on 9-slice and it may depend on your image.
I hope any of these links help.