drawWatermark

fun drawWatermark(    context: Context,     bitmap: Bitmap,     watermark: Watermark)

Draw a watermark into bitmap.

Parameters

context

Context.

bitmap

Bitmap where the watermark is to be drawn.

watermark

Watermark.Drawable or Watermark.Text to draw into the bitmap.


fun drawWatermark(    context: Context,     bitmap: Bitmap,     watermarkList: ArrayList<Watermark>)

Draw a list of watermarks into bitmap.

Parameters

context

Context.

bitmap

Bitmap where the watermarks is to be drawn.

watermarkList

List of Watermark.Drawable or Watermark.Text to draw into the bitmap.