setImage

fun setImage(bitmap: Bitmap)

Updates the source image to a bitmap

Parameters

bitmap

A Bitmap image


fun setImage(@DrawableRes resourceId: Int)

Updates the source image to a bitmap image resource

Parameters

resourceId

The resource ID of a Bitmap image