Class WatermarkUtil


  • public class WatermarkUtil
    extends java.lang.Object
    A utility class with static method for performing water marking operations on a WatermarkContext
    • 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
      • Methods inherited from class java.lang.Object

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

      • WatermarkUtil

        public WatermarkUtil()
    • 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