imageBackground
abstract fun imageBackground(modifier: Modifier, source: ImageSource, scale: ImageScale): Modifier(source)
Appends one nearest-sampled image background resolved from source.
Return
modifier with one active background behavior appended.
Parameters
modifier
existing ordered modifier chain.
source
immutable pixels or structural resource identifier.
scale
mapping from source pixels to measured bounds.
abstract fun imageBackground(modifier: Modifier, source: ImageSource, border: Insets, centerMode: NineSliceCenterMode): Modifier(source)
Appends one nine-slice image background resolved from source.
Return
modifier with one active background behavior appended.
Parameters
modifier
existing ordered modifier chain.
source
immutable pixels or structural resource identifier.
border
source and destination border widths.
centerMode
expandable-segment mapping policy.