GroupDocs.Watermark for .NET

Rapid Custom Watermarking for Images Using .NET

Our .NET C# tool provides a swift solution for embedding watermarks into images. Support for extensive image formats ensures full coverage from photos to digital artwork.

Enhance Your Documents: Generate Watermarks for Image using .NET

GroupDocs.Watermark for .NET is a library that simplifies adding watermarks to various business file formats for .NET developers. Integrate our library into your application and effortlessly watermark documents using these following steps:

  1. Initiating Your Watermarking Journey: Start by acquainting yourself with the Watermarker class, the cornerstone of our API. To begin the process, ensure you instantiate it prior to document processing. Don’t overlook the importance of providing the Image file to the constructor, whether it’s a path or a stream object.
  2. Crafting Custom Watermarks: Move on to the next phase by creating a Watermark object tailored to your specifications. This versatile tool isn’t limited to specific document pages; it can also be seamlessly integrated into native document elements like attachments or headers.
  3. Fine-tuning Watermark Attributes: Refine your watermarking experience by adjusting properties such as height, width, page alignment, font family, and color. This level of customization ensures your watermarks blend seamlessly with your documents.
  4. Applying Your Watermarks: Utilize the Watermarker method to effortlessly apply your custom watermarks to your documents. Whether you need to add one or multiple watermarks, this process offers flexibility. For added security, consider saving your processed documents in a separate location.
// Generate text watermark in IMAGE file

// Provide file to be watermarked
using (Watermarker watermarker = new Watermarker("input.jpeg"))
{
    // Generate text watermark instance
    Font font = new Font("Arial", 19, FontStyle.Bold | FontStyle.Italic);
    TextWatermark watermark = new TextWatermark("my watermark", font);
    watermark.ForegroundColor = Color.Red;
    watermark.BackgroundColor = Color.Blue;
    watermarker.Add(watermark);

    // Save IMAGE result
    watermarker.Save("output.jpeg");
}
dotnet add package GroupDocs.Watermark
click to copy
copied
More examples Documentation

Deep dive into Adding Watermarks

Leverage our powerful API to render, display, convert, and manage documents, slides, diagrams, and various other document types within .NET applications. GroupDocs.Watermark seamlessly integrates watermarking capabilities to enhance document security and copyright protection.

Add Watermark

Watermark Your Documents Effortlessly

GroupDocs.Watermark empowers .NET developers to easily integrate watermarking into their applications. Add text, image, or dynamic watermarks to popular business documents and files effortlessly, ensuring your content is secure and branded consistently across all platforms.

Tailor Watermarks to Meet Your Needs

Customize watermarks to match your specific requirements with extensive features supported by GroupDocs.Watermark. Adjust size, rotation, transparency, color, and font to ensure your watermark not only looks perfect but also enhances document security without obstructing important information.

Harness Native Document Features for Watermarking

Utilize the inherent features of document formats for sophisticated watermarking. Whether it’s using native PDF annotations, MS Word backgrounds, or Excel headers and footers, GroupDocs.Watermark integrates deeply with document structures to apply watermarks that are both effective and minimally invasive.

Generate image watermark for DOCX

This example shows how to apply image effects to the shape watermarks.

C#


    //  Load Word document
    var loadOptions = new WordProcessingLoadOptions();
    using (Watermarker watermarker = new Watermarker("source.docx", loadOptions))
    {
        //  Set up watermark options
        using (ImageWatermark watermark = new ImageWatermark("logo.png"))
        {
            WordProcessingImageEffects effects = new WordProcessingImageEffects();
            effects.Brightness = 0.7;
            effects.Contrast = 0.6;
            effects.ChromaKey = Color.Red;
            effects.BorderLineFormat.Enabled = true;
            effects.BorderLineFormat.Weight = 1;

            WordProcessingWatermarkSectionOptions options = new WordProcessingWatermarkSectionOptions();
            options.Effects = effects;

            //  Generate watermark
            watermarker.Add(watermark, options);
        }

        //  Save updated document
        watermarker.save("result.docx");
    }

GroupDocs.Watermark for .NET

GroupDocs.Watermark for .NET is designed to automate the watermarking process for images, supporting a wide array of formats such as JPEG, PNG, BMP, and TIFF. This robust API allows for the quick insertion of text and image watermarks that are adjustable in opacity, size, and position, tailored to your specific requirements. Whether it’s for protecting copyrights or enhancing marketing materials, our toolkit ensures that watermarks are applied with high fidelity and minimal impact on the original image quality.
Learn more
About illustration

Ready to get started?

Download GroupDocs.Watermark for free or get a trial license for full access!

Useful resources

Explore documentation, code samples, and community support to enhance your experience.

Implement Watermarks Quickly Across Image Formats via C#

Enhance your image protection with our .NET C# toolkit, capable of handling various image formats with speed and efficiency. Tailor your watermarks to blend perfectly with your visual content.

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English