add Corner Border
open fun addCornerBorder(src: Bitmap, @IntRange(from = 1 ) borderSize: Int, @ColorInt() color: Int, @FloatRange(from = 0 ) cornerRadius: Float): Bitmap
Content copied to clipboard
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 = 1 ) borderSize: Int, @ColorInt() color: Int, @FloatRange(from = 0 ) cornerRadius: Float, recycle: Boolean): Bitmap
Content copied to clipboard
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.