MaxUt
06/03/2021, 4:34 PMMaxUt
06/03/2021, 4:34 PMfun saveImageToFileSystem(bitmap: Bitmap, name: String) {
val dir = context.getDir(LOCAL_IMAGES_FOLDER, Context.MODE_PRIVATE)
val image = File(dir, name)
FileOutputStream(image).use {
bitmap.compress(Bitmap.CompressFormat.PNG, 80, it)
it.flush()
it.close()
}
}
MaxUt
06/03/2021, 4:35 PMImage(
painter = rememberGlidePainter(
imageUrl,
fadeIn = true
),
contentDescription = "",
)