PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

SliceCenter

ImageLabel

Rect

The SliceCenter property sets the slice boundaries of a 9-sliced image when ImageLabel/ScaleType is set to Enum/ScaleType/Slice|Enum.ScaleType.Slice. Please note that this property is only visible in the Studio Properties Pane if ImageLabel/ScaleType is set to Enum/ScaleType/Slice|Enum.ScaleType.Slice.
Select this property and click the “…” button to open the 9-Slice Editor, a built-in visual editor for setting the slice boundaries.

To learn more about 9-sliced images, check out this tutorial: UI 9 Slice Design.


Code Samples


Image ScaleType Demo

This code sample demonstrates the different ScaleType options - Stretch, Tile and Slice. It does this by resizing an ImageLabel/ImageButton in a circle.