Add watermarks to images

Adding watermark to multi-framed image 

When you are working with an animated gif or multi-frame tiff images, you may want to add watermark to some particular frame(s) using the method setFrameIndex() of TiffImageWatermarkOptions or GifImageWatermarkOptions.

advanced_usage.add_watermarks_to_images.AddWatermarkToImage

// Specify an absolute or relative path to your image. Ex: "C:\\Docs\\image.tiff"
TiffImageLoadOptions loadOptions = new TiffImageLoadOptions();                                       
Watermarker watermarker = new Watermarker("image.tiff", loadOptions);                       
                                                                                                     
// Initialize text or image watermark                                                                
TextWatermark watermark = new TextWatermark("Test watermark", new Font("Arial", 19));                
                                                                                                     
// Add watermark to the first frame                                                                  
TiffImageWatermarkOptions options = new TiffImageWatermarkOptions();                                 
options.setFrameIndex(0);                                                                            
                                                                                                     
watermarker.add(watermark, options);                                                                 
watermarker.save("image.tiff");                                                            
                                                                                                     
watermarker.close();