// Specify an absolute or relative path to your image. Ex: "C:\\Docs\\image.tiff"
TiffImageLoadOptionsloadOptions=newTiffImageLoadOptions();Watermarkerwatermarker=newWatermarker("image.tiff",loadOptions);// Initialize text or image watermark
TextWatermarkwatermark=newTextWatermark("Test watermark",newFont("Arial",19));// Add watermark to the first frame
TiffImageWatermarkOptionsoptions=newTiffImageWatermarkOptions();options.setFrameIndex(0);watermarker.add(watermark,options);watermarker.save("image.tiff");watermarker.close();