Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save conholdate-docs-gists/a52f00f603e5924078cce7f4f89d4044 to your computer and use it in GitHub Desktop.
Save conholdate-docs-gists/a52f00f603e5924078cce7f4f89d4044 to your computer and use it in GitHub Desktop.
TiffImageLoadOptions loadOptions = new TiffImageLoadOptions();
// Constants.InImageTiff is an absolute or relative path to your document. Ex: @"C:\Docs\image.tiff"
using (Watermarker watermarker = new Watermarker(Constants.InImageTiff, 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.FrameIndex = 0;
watermarker.Add(watermark, options);
watermarker.Save(Constants.OutImageTiff);
}
@conholdate-docs-gists
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment