PXC Documentation

PXC Home

Nine Slice

1.18.0

Cut image into 3x3 parts, and scale/repeat only the middle part.

Node Data

Display name

Nine Slice

Internal name

Node_9Slice

Inheritances

Node_Processor
Node_9Slice

Inputs

Node_9Slice

surface

Surface In

dimension

Dimension

ipadding

Splice

enum

Filling Modes

Outputs

Node_9Slice

surface

Surface Out

dynasurface

Dynasurf

Attributes

Color Depth
Interpolation

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.



Related Links