> For the complete documentation index, see [llms.txt](https://docs.overdare.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overdare.com/korean/development/api-reference/enums/scaletype.md).

# ScaleType

## Overview

ScaleType은 이미지가 UI 요소의 크기에 맞춰 어떻게 조정되는지를 정의하는 Enum입니다.

ImageLabel과 ImageButton의 ScaleType 속성에서 사용되며, 이미지를 늘릴지, 아홉 개의 영역으로 나누어 조정할지, 반복할지, 비율을 유지해 맞출지를 결정합니다.

## Items

| Name    | Value | Description                                           |
| ------- | ----- | ----------------------------------------------------- |
| Stretch | 0     | 이미지를 요소의 크기에 맞게 늘립니다.                                 |
| Slice   | 1     | 이미지를 아홉 개의 영역으로 나누고 각 영역에 서로 다른 조정 규칙을 적용합니다.         |
| Tile    | 2     | TileSize 크기의 타일로 이미지를 반복해 표시합니다.                      |
| Fit     | 3     | 원본 비율을 유지한 채 이미지 전체가 요소 안에 들어가도록 크기를 맞춥니다.            |
| Crop    | 4     | 원본 비율을 유지한 채 요소를 가득 채우도록 크기를 맞추고, 요소를 벗어나는 부분은 잘라냅니다. |

## See also

{% content-ref url="/pages/VRT7pq5znAdlSQ5FrIZ7" %}
[ImageLabel](/korean/development/api-reference/classes/imagelabel.md)
{% endcontent-ref %}

{% content-ref url="/pages/PE7MHvSdaMOO7vSUNJoT" %}
[ImageButton](/korean/development/api-reference/classes/imagebutton.md)
{% endcontent-ref %}
