Canvas.draw9Patch

Function/Meaning

Drawing using 9patch

Type
Canvasclassmethod of
Syntax
draw9Patch(txture:Texture, width:int, height:int, shader:ShaderProgram=null) :Rect
Arguments
texture

Texture to draw

width

Width to draw

height

Height to draw

shader

Shader used for drawing. Optional.

Return value

Returns margin information.

Explanation

The Texture used for drawing must have 9patch information loaded.
Only the Texture class can be specified.