toRound

open fun toRound(src: Bitmap): Bitmap

Return the round bitmap.

Return

the round bitmap

Parameters

src

The source of bitmap.

open fun toRound(src: Bitmap, recycle: Boolean): Bitmap

Return the round bitmap.

Return

the round bitmap

Parameters

src

The source of bitmap.

recycle

True to recycle the source of bitmap, false otherwise.

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

Return the round bitmap.

Return

the round bitmap

Parameters

src

The source of bitmap.

borderSize

The size of border.

borderColor

The color of border.

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

Return the round bitmap.

Return

the round bitmap

Parameters

src

The source of bitmap.

recycle

True to recycle the source of bitmap, false otherwise.

borderSize

The size of border.

borderColor

The color of border.