toRoundCorner

open fun toRoundCorner(src: Bitmap, radius: Float): Bitmap

Return the round corner bitmap.

Return

the round corner bitmap

Parameters

src

The source of bitmap.

radius

The radius of corner.

open fun toRoundCorner(src: Bitmap, radius: Float, recycle: Boolean): Bitmap

Return the round corner bitmap.

Return

the round corner bitmap

Parameters

src

The source of bitmap.

radius

The radius of corner.

recycle

True to recycle the source of bitmap, false otherwise.

open fun toRoundCorner(src: Bitmap, radius: Float, @IntRange(from = 0borderSize: Int, @ColorInt() borderColor: Int): Bitmap

Return the round corner bitmap.

Return

the round corner bitmap

Parameters

src

The source of bitmap.

radius

The radius of corner.

borderSize

The size of border.

borderColor

The color of border.

open fun toRoundCorner(src: Bitmap, radius: Float, @IntRange(from = 0borderSize: Int, @ColorInt() borderColor: Int, recycle: Boolean): Bitmap

Return the round corner bitmap.

Return

the round corner bitmap

Parameters

src

The source of bitmap.

radius

The radius of corner.

borderSize

The size of border.

borderColor

The color of border.

recycle

True to recycle the source of bitmap, false otherwise.