drawTextureSlice

fnvoid drawTextureSlice(TextureId texture, Rect area, Rect target, Margin margin, bool canRepeat, DrawOptions options = DrawOptions())

Draws a 9-slice from the specified texture area at the given target area.

fnvoid drawTextureSlice(Rect area, Rect target, Margin margin, bool canRepeat, DrawOptions options = DrawOptions())

Draws a 9-slice from the default texture area at the given target area. Call setDefaultTexture before using this function.