RemoteImage
Source set: JvmAndAndroid
@Composable
public fun RemoteImage(
bitmap: RemoteImageBitmap,
contentDescription: RemoteString?,
modifier: RemoteModifier = RemoteModifier,
contentScale: RemoteContentScale = RemoteContentScale.Fit,
alpha: RemoteFloat = 1f.rf,
)
Creates an image component that lays out and draws a given RemoteImageBitmap.
Example of displaying a cropped RemoteImageBitmap:
Example of fitting a RemoteImageBitmap inside fixed bounds:
Parameters
| bitmap | RemoteImageBitmap to be drawn |
| contentDescription | text used by accessibility services to describe what this image represents |
| modifier | RemoteModifier to be applied to this layout node |
| contentScale | rule to apply to scale the image when its size does not match layout size |
| alpha | opacity to be applied to bitmap when rendered, defaulting to 1.0f |