Drawable
Parameters
Drawable resource or object for the watermark.
Position for the watermark inside of the image.
Width for the watermark, if the value is zero, the intrinsic width of the drawable will be used. If the drawable has no intrinsic width, such as a solid color, an exception will be thrown.
Height for the watermark, if the value is zero, the intrinsic height of the drawable will be used. If the drawable has no intrinsic height, such as a solid color, an exception will be thrown.
Watermark offset for the x-axis.
Watermark offset for the y-axis.
Rotation in degrees for the watermark.
Opacity of the watermark. This is a value from 0 to 1, where 0 means the watermark is completely transparent and 1 means the watermark is completely opaque.
Type of dimension to use to draw watermark, its apply for width, height, dx and dy. For example, if the value of width is 10f and measurementDimension is Dimension.PX, the width of the drawn watermark will be 10 px, but if measurementDimension is Dimension.DP, the the width of the drawn watermark will be calculate according the screen density. It is recommended to use only Dimension.PX or Dimension.DP for a Drawable watermark.