---
title: "ContentScale"
description: "Scaling to be used when an element is smaller than its available bounds. Mainly used by [Image]
to dictate how the image should be drawn within the [Image] element's bounding box."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-android'>Android</div>


```kotlin
public value class ContentScale(private val value: Int)
```


Scaling to be used when an element is smaller than its available bounds. Mainly used by `Image`
to dictate how the image should be drawn within the `Image` element's bounding box.


## Companion Object

#### Properties

<div class='sourceset sourceset-android'>Android</div>


```kotlin
public val Crop: ContentScale
```


Scale the source uniformly (maintaining the source's aspect ratio) so that both
dimensions (width and height) of the source will be equal to or larger than the
corresponding dimension of the destination.



<div class='sourceset sourceset-android'>Android</div>


```kotlin
public val Fit: ContentScale
```


Scale the source uniformly (maintaining the source's aspect ratio) so that both
dimensions (width and height) of the source will be equal to or less than the
corresponding dimension of the destination



<div class='sourceset sourceset-android'>Android</div>


```kotlin
public val FillBounds: ContentScale
```


Scale horizontal and vertically non-uniformly to fill the destination bounds.





