MaxUt
04/28/2021, 2:03 PMBitmapFactory.decodeFile(MY_FILE_PATH)
to convert the images into Bitmap first and then from Bitmap to ImageBitmapNthily
04/28/2021, 2:23 PMNthily
04/28/2021, 2:23 PMNthily
04/28/2021, 2:23 PMNthily
04/28/2021, 2:25 PMCoilImage(Uri.fromFile(path...), null)
MaxUt
04/28/2021, 2:25 PMAdam Powell
04/28/2021, 2:35 PMBitmap
you can use the .asImageBitmap()
extension: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#asimagebitmapMBegemot
04/28/2021, 2:35 PMBitmapFactory.decodeByteArray(localByteArray, 0, locakByteArray.size).asImageBitmap()
and yo don't need anything elseAdam Powell
04/28/2021, 2:35 PMNthily
04/28/2021, 2:36 PMMBegemot
04/28/2021, 2:36 PMAdam Powell
04/28/2021, 2:36 PMAdam Powell
04/28/2021, 2:37 PMMaxUt
04/28/2021, 2:38 PMAdam Powell
04/28/2021, 2:42 PMChachako
04/28/2021, 5:25 PM.asImageBitmap()
, which is very easy. If you want to load a Bitmap and use it with Coil's or Gilde's many out-of-the-box features, you can use accompanist
, otherwise you can simply use .asImageBitmap()
, and apply it to an Image.