ContentScale

value class ContentScale


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.

Summary

Public companion properties

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.

ContentScale

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

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

Public constructors

ContentScale(value: Int)

Public companion properties

Crop

Added in 1.0.0
val CropContentScale

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.

FillBounds

Added in 1.0.0
val FillBoundsContentScale

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

Fit

Added in 1.0.0
val FitContentScale

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

Public constructors

ContentScale

Added in 1.0.0
ContentScale(value: Int)