# Enum.ScaleType

Roblox Engine API enum from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- HTML page: https://rapi.sleaze.dev/enums/ScaleType/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/enums/ScaleType

Determines how an image (of a [`ImageLabel`](https://rapi.sleaze.dev/classes/ImageLabel.md) or [`ImageButton`](https://rapi.sleaze.dev/classes/ImageButton.md)) is scaled.

## Items

| Name | Value | Description |
| --- | --- | --- |
| `Stretch` | 0 | The image is stretched to fit within the element. |
| `Slice` | 1 | 9-Slice scaling: slice the image into 9 regions and apply different scaling rules to each region. The slice boundaries are determined by [`ImageLabel.SliceCenter`](https://rapi.sleaze.dev/classes/ImageLabel.md) or [`ImageButton.SliceCenter`](https://rapi.sleaze.dev/classes/ImageButton.md). See [UI 9-Slice Design](https://create.roblox.com/docs/ui/9-slice) for more information. |
| `Tile` | 2 | The image is tiled to fit within the element. For example, if the element is twice the X dimension of the image, the image will appear twice (2 tiles). |
| `Fit` | 3 | The image is scaled fit within the element X or Y dimension (whichever fits first). |
| `Crop` | 4 | The image is cropped to fit within the element. |

## Used by

Each entry lists the class, then the role and names of the members that use this type.

- [ImageButton](https://rapi.sleaze.dev/classes/ImageButton.md): property `ScaleType`
- [ImageLabel](https://rapi.sleaze.dev/classes/ImageLabel.md): property `ScaleType`
- [VideoDisplay](https://rapi.sleaze.dev/classes/VideoDisplay.md): property `ScaleType`
