From 576c79932d5f9b4604f8db4f0a03c3f3842d06e3 Mon Sep 17 00:00:00 2001 From: xiao_wine Date: Wed, 16 Aug 2023 00:06:25 +0800 Subject: [PATCH] remove getRoundedCornerBitmap private --- xkt/src/main/java/cn/xiaowine/xkt/ViewTool.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xkt/src/main/java/cn/xiaowine/xkt/ViewTool.kt b/xkt/src/main/java/cn/xiaowine/xkt/ViewTool.kt index b27500c..9d19b90 100644 --- a/xkt/src/main/java/cn/xiaowine/xkt/ViewTool.kt +++ b/xkt/src/main/java/cn/xiaowine/xkt/ViewTool.kt @@ -8,8 +8,8 @@ import android.graphics.PorterDuff import android.graphics.PorterDuffXfermode import android.graphics.RectF -class ViewTool { - private fun Bitmap.getRoundedCornerBitmap(cornerRadius: Float): Bitmap { +object ViewTool { + fun Bitmap.getRoundedCornerBitmap(cornerRadius: Float): Bitmap { val output = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888) val canvas = Canvas(output) val paint = Paint(Paint.ANTI_ALIAS_FLAG)