scale
public fun RemoteModifier.scale(scaleX: RemoteFloat, scaleY: RemoteFloat): RemoteModifier
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 of scaling a composable independently along the horizontal and vertical axes:
Parameters
| scaleX | Multiplier to scale content along the horizontal axis |
| scaleY | Multiplier to scale content along the vertical axis |
Return
a RemoteModifier that scales content by scaleX and scaleY
scale
public fun RemoteModifier.scale(scale: RemoteFloat): RemoteModifier
Scale the contents of both the horizontal and vertical axis uniformly by the same scale factor.
Example of uniformly scaling a composable along both axes:
Parameters
| scale | Multiplier to scale content along the horizontal and vertical axis |
Return
a RemoteModifier that uniformly scales content by scale