addCornerBorder

open fun addCornerBorder(src: Bitmap, @IntRange(from = 1borderSize: Int, @ColorInt() color: Int, @FloatRange(from = 0cornerRadius: Float): Bitmap

Return the round corner bitmap with border.

Return

the round corner bitmap with border

Parameters

src

The source of bitmap.

borderSize

The size of border.

color

The color of border.

cornerRadius

The radius of corner.

open fun addCornerBorder(src: Bitmap, @IntRange(from = 1borderSize: Int, @ColorInt() color: Int, @FloatRange(from = 0cornerRadius: Float, recycle: Boolean): Bitmap

Return the round corner bitmap with border.

Return

the round corner bitmap with border

Parameters

src

The source of bitmap.

borderSize

The size of border.

color

The color of border.

cornerRadius

The radius of corner.

recycle

True to recycle the source of bitmap, false otherwise.