scale
Source set: Common
public fun Modifier.scale(scaleX: Float, scaleY: Float): Modifier
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:
Usage of this API renders this composable into a separate graphics layer
Parameters
| scaleX | Multiplier to scale content along the horizontal axis |
| scaleY | Multiplier to scale content along the vertical axis |
scale
Source set: Common
@Stable public fun Modifier.scale(scale: Float): Modifier
Scale the contents of both the horizontal and vertical axis uniformly by the same scale factor.
Usage of this API renders this composable into a separate graphics layer
Example usage:
Parameters
| scale | Multiplier to scale content along the horizontal and vertical axis |