[6.2.4]降低截图图片质量

This commit is contained in:
xuxinchao
2023-12-07 12:18:06 +08:00
parent f23c54aa47
commit e89ac5fb8e

View File

@@ -25,7 +25,7 @@ object RecordBitmapUtils {
fun bitmap2Path(bitmap: Bitmap, path: String?): String? {
try {
val os: OutputStream = FileOutputStream(path)
bitmap.compress(Bitmap.CompressFormat.PNG, 80, os)
bitmap.compress(Bitmap.CompressFormat.PNG, 50, os)
os.flush()
os.close()
} catch (e: java.lang.Exception) {