# RemoteContentScale

> Scaling rule used when drawing content into a destination rectangle.

## API Reference

> Source set: JvmAndAndroid

```kotlin
public class RemoteContentScale internal constructor(internal val value: Int)
```

Scaling rule used when drawing content into a destination rectangle.

## Functions

### toString

> Source set: JvmAndAndroid

```kotlin
override fun toString(): String
```

## Members

### Companion

> Source set: JvmAndAndroid

```kotlin
public companion object
```

## Properties

### Crop

> Source set: JvmAndAndroid

```kotlin
public val Crop: RemoteContentScale = RemoteContentScale(ImageScaling.SCALE_CROP)
```

Scale the source uniformly (maintaining aspect ratio) so that both dimensions are equal
to or larger than the corresponding dimension of the destination.

### Fit

> Source set: JvmAndAndroid

```kotlin
public val Fit: RemoteContentScale = RemoteContentScale(ImageScaling.SCALE_FIT)
```

Scale the source uniformly (maintaining aspect ratio) so that both dimensions are equal
to or less than the corresponding dimension of the destination.

### FillHeight

> Source set: JvmAndAndroid

```kotlin
public val FillHeight: RemoteContentScale =
            RemoteContentScale(ImageScaling.SCALE_FILL_HEIGHT)
```

Scale the source uniformly (maintaining aspect ratio) so that the height matches the
destination height.

### FillWidth

> Source set: JvmAndAndroid

```kotlin
public val FillWidth: RemoteContentScale = RemoteContentScale(ImageScaling.SCALE_FILL_WIDTH)
```

Scale the source uniformly (maintaining aspect ratio) so that the width matches the
destination width.

### Inside

> Source set: JvmAndAndroid

```kotlin
public val Inside: RemoteContentScale = RemoteContentScale(ImageScaling.SCALE_INSIDE)
```

Scale the source to fit inside the destination bounds if either dimension is larger than
the destination. If the source is smaller than the destination in both dimensions,
drawing occurs without scaling.

### None

> Source set: JvmAndAndroid

```kotlin
public val None: RemoteContentScale = RemoteContentScale(ImageScaling.SCALE_NONE)
```

Do not apply any scaling to the source.

### FillBounds

> Source set: JvmAndAndroid

```kotlin
public val FillBounds: RemoteContentScale =
            RemoteContentScale(ImageScaling.SCALE_FILL_BOUNDS)
```

Scale the source non-uniformly to match the destination bounds.
