androidx.compose.ui.draw
scale
Function · from org.jetbrains.compose.ui:ui:1.12.2
No hand-written docs yet.
Scale the contents of the composable by the following scale factors along the horizontal and vertical axis respectively. Negative scale factors can be used to mirror content across the corresponding horizontal or vertical axis.
With scaleX, scaleY
fun Modifier.scale(scaleX: Float, scaleY: Float)
scaleX: FloatRequired
scaleX: FloatRequiredMultiplier to scale content along the horizontal axis
scaleY: FloatRequired
scaleY: FloatRequiredMultiplier to scale content along the vertical axis
With scale
fun Modifier.scale(scale: Float)
scale: FloatRequired
scale: FloatRequiredMultiplier to scale content along the horizontal and vertical axis
Library docs
Scale the contents of the composable by the following scale factors along the horizontal and vertical axis respectively. Negative scale factors can be used to mirror content across the corresponding horizontal or vertical axis.
Example usage: