addTextWatermark

open fun addTextWatermark(src: Bitmap, content: String, textSize: Int, @ColorInt() color: Int, x: Float, y: Float): Bitmap

Return the bitmap with text watermarking.

Return

the bitmap with text watermarking

Parameters

src

The source of bitmap.

content

The content of text.

textSize

The size of text.

color

The color of text.

x

The x coordinate of the first pixel.

y

The y coordinate of the first pixel.

open fun addTextWatermark(src: Bitmap, content: String, textSize: Float, @ColorInt() color: Int, x: Float, y: Float, recycle: Boolean): Bitmap

Return the bitmap with text watermarking.

Return

the bitmap with text watermarking

Parameters

src

The source of bitmap.

content

The content of text.

textSize

The size of text.

color

The color of text.

x

The x coordinate of the first pixel.

y

The y coordinate of the first pixel.

recycle

True to recycle the source of bitmap, false otherwise.