Updated blur strength factor
This commit is contained in:
1 parent
7b75db3437
commit
9563bf2057
1 file changed
+1
-1
@@ -202,7 +202,7 @@ fun darkenBitmap(source: Bitmap, percent: Int): Bitmap {
|
||||
*/
|
||||
fun blurBitmap(source: Bitmap, percent: Int): Bitmap {
|
||||
return try {
|
||||
val factor = percent.toFloat().div(100f) * 10
|
||||
val factor = percent.toFloat().div(100f) * 20f
|
||||
Toolkit.blur(source, factor.toInt())
|
||||
} catch (e: Exception) {
|
||||
Log.e("WallpaperUtil", "Error darkening bitmap: $e")
|
||||
|
||||
Reference in new issue
Block a user