common-ktx

//library/ss_n.common_ktx.extension/save

save

[androidJvm]\

@RequiresPermission(allOf = ["android.permission.WRITE_EXTERNAL_STORAGE", "android.permission.READ_EXTERNAL_STORAGE"])

fun Bitmap.save(filePath: String, format: Bitmap.CompressFormat = Bitmap.CompressFormat.JPEG, quality: Int = 100, isErrorLog: Boolean = false): Boolean

Bitmap save

Return

true:File saved

Parameters

androidJvm

   
filePath File Path
format default: JPEG
quality default: 100
isErrorLog default: false