BasicImage
A composable that lays out and asynchronously draws a ImageBitmap from a given BasicPath using a LaunchedEffect.
Example:
@Composable
fun Test() {
// Loads an image via URL location
BasicImage(path = BasicPath("/images/exampleImage.jpeg"))
}
Parameters
The BasicPath to obtain the PNG, JPEG, or WEBP file
text used by accessibility services to describe what this image represents.
Modifier used to adjust the layout algorithm or draw decoration content (ex. background)
Optional alignment parameter used to place the ImageBitmap in the given bounds defined by the width and height
Optional scale parameter used to determine the aspect ratio scaling to be used if the bounds are a different size from the intrinsic size of the ImageBitmap
Optional opacity to be applied to the ImageBitmap when it is rendered onscreen
Optional ColorFilter to apply for the ImageBitmap when it is rendered onscreen
Sampling algorithm applied to the ImageBitmap when it is scaled and drawn into the destination. The default is FilterQuality.Low which scales using a bilinear sampling algorithm
Boolean value to determine if the image should be preceded by a circular progress indicator while loading.
A composable that lays out and asynchronously draws a ImageBitmap from a given BasicUrl using a LaunchedEffect.
Example:
@Composable
fun Test() {
// Loads an image via URL location
BasicImage(url = BasicUrl("https://picsum.photos/200"))
}
Parameters
The BasicUrl to obtain the PNG, JPEG, or WEBP file
text used by accessibility services to describe what this image represents.
Modifier used to adjust the layout algorithm or draw decoration content (ex. background)
Optional alignment parameter used to place the ImageBitmap in the given bounds defined by the width and height
Optional scale parameter used to determine the aspect ratio scaling to be used if the bounds are a different size from the intrinsic size of the ImageBitmap
Optional opacity to be applied to the ImageBitmap when it is rendered onscreen
Optional ColorFilter to apply for the ImageBitmap when it is rendered onscreen
Sampling algorithm applied to the ImageBitmap when it is scaled and drawn into the destination. The default is FilterQuality.Low which scales using a bilinear sampling algorithm
Boolean value to determine if the image should be preceded by a circular progress indicator while loading.