A ninepatch is a View subclass which displays a 9patch texture on a square.
surface = Surface(bounds, texture, inset)
|The Surface’s bounds.
|The size of the border of the surface
|asset with the 9patch image texture to use
|The number of pixels to inset from each side in the texture image