Watermark

sealed class Watermark

Definition class for a watermark.

Types

Link copied to clipboard
data class Drawable(    @DrawableOrDrawableRes val drawable: Any,     val position: WatermarkPosition = WatermarkPosition.MIDDLE_CENTER,     val width: Float = 0.0f,     val height: Float = 0.0f,     val dx: Float = 0.0f,     val dy: Float = 0.0f,     val rotation: Float = 0.0f,     @FloatRange(from = 0.0, to = 1.0) val opacity: Float = 1.0f,     val measurementDimension: Dimension = Dimension.PX) : Watermark

Definition for a drawable watermark (shape, image, etc.)

Link copied to clipboard
data class Text(    @StringOrStringRes val text: Any,     val textSize: Float = 12.0f,     @ColorInt val textColor: Int = Color.BLACK,     val position: WatermarkPosition = WatermarkPosition.MIDDLE_CENTER,     val dx: Float = 0.0f,     val dy: Float = 0.0f,     val rotation: Float = 0.0f,     @FloatRange(from = 0.0, to = 1.0) val opacity: Float = 1.0f,     val typeface: Typeface? = null,     val shadow: WatermarkShadow? = null,     val measurementDimension: Dimension = Dimension.PX) : Watermark

Definition for a text watermark.

Properties

Link copied to clipboard
abstract val dx: Float
Link copied to clipboard
abstract val dy: Float
Link copied to clipboard
abstract val measurementDimension: Dimension
Link copied to clipboard
abstract val opacity: Float
Link copied to clipboard
abstract val position: WatermarkPosition
Link copied to clipboard
abstract val rotation: Float

Inheritors

Link copied to clipboard
Link copied to clipboard