Package com.day.cq.dam.commons.watermark
Class WatermarkUtil
java.lang.Object
com.day.cq.dam.commons.watermark.WatermarkUtil
A utility class with static method for performing water marking operations on a
WatermarkContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Applies the watermark on top of the underlying image.
Before applying, it also styles the watermark considering the following:
position - relative to the underlying source image orientation - angle of rotation as measured from the x-axis in clockwise direction opacity - transparency of the watermark
-
Constructor Details
-
WatermarkUtil
public WatermarkUtil()
-
-
Method Details
-
applyWatermark
Applies the watermark on top of the underlying image.
Before applying, it also styles the watermark considering the following:
- position - relative to the underlying source image
- orientation - angle of rotation as measured from the x-axis in clockwise direction
- opacity - transparency of the watermark
- Throws:
WatermarkingException
-