GroupDocs.Watermark for .NET

C# Watermarking for PNG Files

Utilize .NET C# to apply advanced watermarks to PNG images, safeguarding artistic and digital content effectively.

Effortlessly Generate Watermarks for Png Documents

GroupDocs.Watermark for .NET: Advanced Watermarking library for .NET applications. Empower your solution and secure documents with watermarks just in time.

  1. Core Class: Watermarker. The main class of our API is Watermarker. You need to instantiate it before document processing. Do not forget to pass the Png file to the constructor as a path or a stream object.
  2. Crafting Your Watermark. The next step is constructing a Watermark object of the desired type. It can be placed not only on a specific document page but also in native document parts like images or headers.
  3. Fine-Tuning Appearance. Set watermark properties such as height and width, top, left, central alignments, fonts and colors, etc.
  4. Applying and Saving. Use the Watermarker method to add a new watermark. Feel free to add as many watermarks as you need. You may save the watermarked document to any location.
// Generate image watermark in PNG file

// Provide source file path to Watermarker constructor
using (Watermarker watermarker = new Watermarker("input.png"))
{
    // Generate image watermark instance with image file
    using (ImageWatermark watermark = new ImageWatermark("watermark.png"))
    {
        watermarker.Add(watermark);
    }
    // Save watermarked PNG result
    watermarker.Save("output.png");
}
dotnet add package GroupDocs.Watermark
click to copy
copied
More examples Documentation

Elevate Your Watermarking Game

Unlock advanced watermarking capabilities with our GroupDocs.Watermark API for .NET. This powerful tool allows for precise customization and application of watermarks across various document types to ensure maximum security and copyright adherence with minimal visual disruption.

Comprehensive Watermarking Solutions

Sophisticated Tiling Options

Extend your watermarks across entire documents seamlessly with our tiling options. This feature allows watermarks to cover the full document area, preventing removal and ensuring complete document protection without compromising on design or readability.

Vibrant Color Customization

Add a splash of color to your watermarks! Our API enables full spectrum color customization, allowing you to apply watermarks that perfectly match your corporate branding or document style. Enhance visual appeal while maintaining robust security features.

Enhanced Security Settings

Take document security to the next level with advanced watermark settings. Configure multi-layer watermarks, incorporating both visible and invisible elements, to protect against unauthorized copying and ensure only intended recipients can access critical information.

Generate PowerPoint watermark

This example shows how to add watermark to the PPTX background images

C#


    //  Load PPTX presentation
    var loadOptions = new PresentationLoadOptions();
    using (Watermarker watermarker = new Watermarker("source.pptx", loadOptions))
    {
        //  Set up watermark properties
        TextWatermark watermark = new TextWatermark("Protected image", new Font("Arial", 8));
        watermark.HorizontalAlignment = HorizontalAlignment.Center;
        watermark.VerticalAlignment = VerticalAlignment.Center;
        watermark.RotateAngle = 45;
        watermark.SizingType = SizingType.ScaleToParentDimensions;
        watermark.ScaleFactor = 1;

        //  Watermark slides background
        PresentationContent content = watermarker.GetContent<PresentationContent>();
        foreach (PresentationSlide slide in content.Slides)
        {
            if (slide.ImageFillFormat.BackgroundImage != null)
            {
                slide.ImageFillFormat.BackgroundImage.Add(watermark);
            }
        }

        //  Save processed presentation
        watermarker.save("result.pptx");
    }

GroupDocs.Watermark for .NET

GroupDocs.Watermark for .NET provides a specialized .NET C# toolkit for embedding watermarks in PNG files, catering to artists, designers, and content creators who need to protect their visual assets. This API allows for the seamless addition of both transparent and opaque watermarks that can be intricately positioned and scaled to maintain the original image’s integrity while ensuring legal protection. Features include custom text and image watermarks, precise control over watermark opacity, and the ability to add multi-layer watermarks for enhanced security. Whether for personal use or professional portfolios, GroupDocs.Watermark ensures your PNG images are protected against unauthorized reproduction and use, fully supported on .NET environments.
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.

Implementing Watermarks in PNG with C#

Deploy .NET C# to create discreet or bold watermarks in PNG images, ensuring both aesthetic flexibility and robust copyright protection.

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