Class WatermarkUtil

java.lang.Object
com.day.cq.dam.commons.watermark.WatermarkUtil

public class WatermarkUtil extends Object
A utility class with static method for performing water marking operations on a WatermarkContext
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WatermarkUtil

      public WatermarkUtil()
  • Method Details

    • 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