measurementDimension

open override val measurementDimension: Dimension

Parameters

measurementDimension

Type of dimension to use to draw watermark, its apply for textSize, dx, dy and shadow configuration (radius, dx and dy). For example, if the value of dx is 10f and measurementDimension is Dimension.PX, the offset of the drawn watermark will be 10 px in x-axis, but if measurementDimension is Dimension.DP, the the offset of the drawn watermark in x-axis will be calculate according the screen density. It is recommended to use DP instead of SP to prevent the text size from being affected by the device's font size setting.