PXC Documentation

PXC Home

Nine Slice

1.18.0

Cut image into 3x3 parts



Node Data

TransformArray

Display name

Nine Slice

Internal name

Node_9Slice

Inheritances

node
node_processor
node_9slice

Inputs

node_9slice

surface

Surface In

dimension

Dimension

padding

Splice

enum

Filling Modes

Outputs

node_9slice

surface

Surface Out

Create a 9-slice image from a source image. 9-slice images are used to create scalable images that can be stretched without distorting the corners. This is useful for creating scalable buttons, panels, and other UI elements.



Properties


Surface In


Input image to create 9-slice from.


Dimension


Output image size.


Splice


4 values that define the 9-slice regions. The values are in the order of left, top, right, bottom.


Filling Modes


Whether to stretch (scale) or repeat the 9-slice regions.