Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
remove getRoundedCornerBitmap private
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaowine committed Aug 15, 2023
1 parent 2058173 commit 576c799
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xkt/src/main/java/cn/xiaowine/xkt/ViewTool.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 576c799

Please sign in to comment.