public class RemoteContentScale internal constructor(internal val value: Int)
Scaling rule used when drawing content into a destination rectangle.
Functions
toString
override fun toString(): String
Members
Companion
public companion object
Properties
Crop
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
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
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
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
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
public val None: RemoteContentScale = RemoteContentScale(ImageScaling.SCALE_NONE)
Do not apply any scaling to the source.
FillBounds
public val FillBounds: RemoteContentScale =
RemoteContentScale(ImageScaling.SCALE_FILL_BOUNDS)
Scale the source non-uniformly to match the destination bounds.