Class WatermarkUtil


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