addImageWatermark

open fun addImageWatermark(src: Bitmap, watermark: Bitmap, x: Int, y: Int, alpha: Int): Bitmap

Return the bitmap with image watermarking.

Return

the bitmap with image watermarking

Parameters

src

The source of bitmap.

watermark

The image watermarking.

x

The x coordinate of the first pixel.

y

The y coordinate of the first pixel.

alpha

The alpha of watermark.

open fun addImageWatermark(src: Bitmap, watermark: Bitmap, x: Int, y: Int, alpha: Int, recycle: Boolean): Bitmap

Return the bitmap with image watermarking.

Return

the bitmap with image watermarking

Parameters

src

The source of bitmap.

watermark

The image watermarking.

x

The x coordinate of the first pixel.

y

The y coordinate of the first pixel.

alpha

The alpha of watermark.

recycle

True to recycle the source of bitmap, false otherwise.