ZForms documentation/BoxTextures

A texture used for drawing a resizeable box. This uses 9-slice scaling to correctly scale up or tile the box image without distorting the corners and sides.

Usage
Sets the texture up to be used as a plain texture, without special scaling.

Parameters

 * tex: The texture to be used.
 * scaleTex: Whether to scale up (true) or tile (false) the texture.

Usage
Sets the texture up to be used with 9-slice scaling, with the coordinates for the middle of the box being specified as pixels.

Parameters

 * boxTex: The texture to be used.
 * topLeft: The top-left corner of the middle of the box, in pixels.
 * bottomRight: The bottom-right corner of the middle of the box, in pixels.
 * scaleSides: Whether to scale up (true) or tile (false) the sides of the box.
 * scaleMiddle: Whether to scale up (true) or tile (false) the middle of the box.

Usage
Sets the texture up to be used with 9-slice scaling, with the coordinates for the middle of the box being specified as normalized coordinates. (0-1)

Parameters

 * boxTex: The texture to be used.
 * topLeft: The top-left corner of the middle of the box, in normalized coordinates.
 * bottomRight: The bottom-right corner of the middle of the box, in normalized coordinates.
 * scaleSides: Whether to scale up (true) or tile (false) the sides of the box.
 * scaleMiddle: Whether to scale up (true) or tile (false) the middle of the box.

Usage
Sets the texture up to be used as a plain texture, without special scaling.

Parameters

 * tex: The texture to be used.

Usage
Sets the texture up to be used with 9-slice scaling, with the coordinates for the middle of the box being specified as pixels.

Parameters

 * boxTex: The texture to be used.
 * topLeft: The top-left corner of the middle of the box, in pixels.
 * bottomRight: The bottom-right corner of the middle of the box, in pixels.

Usage
Sets the texture up to be used with 9-slice scaling, with the coordinates for the middle of the box being specified as normalized coordinates. (0-1)

Parameters

 * boxTex: The texture to be used.
 * topLeft: The top-left corner of the middle of the box, in normalized coordinates.
 * bottomRight: The bottom-right corner of the middle of the box, in normalized coordinates.

Usage
Creates a complete copy of the texture.