Class

RemoteContentScale

Scaling rule used when drawing content into a destination rectangle.

Source set: JvmAndAndroid
public class RemoteContentScale internal constructor(internal val value: Int)

Scaling rule used when drawing content into a destination rectangle.

Functions

toString

Source set: JvmAndAndroid
override fun toString(): String

Members

Companion

Source set: JvmAndAndroid
public companion object

Properties

Crop

Source set: JvmAndAndroid
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
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
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
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
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
public val None: RemoteContentScale = RemoteContentScale(ImageScaling.SCALE_NONE)

Do not apply any scaling to the source.

FillBounds

Source set: JvmAndAndroid
public val FillBounds: RemoteContentScale =
            RemoteContentScale(ImageScaling.SCALE_FILL_BOUNDS)

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

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: