Package com.day.cq.dam.commons.watermark
Class WatermarkUtil
- java.lang.Object
-
- com.day.cq.dam.commons.watermark.WatermarkUtil
-
public class WatermarkUtil extends java.lang.Object
A utility class with static method for performing water marking operations on aWatermarkContext
-
-
Constructor Summary
Constructors Constructor Description WatermarkUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
applyWatermark(WatermarkContext ctx)
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
-
-
-
Method Detail
-
applyWatermark
public static void applyWatermark(WatermarkContext ctx) throws WatermarkingException
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
-
-