1. Products
  2.   Conholdate.Total
  3.   .NET
  4.   PNG Watermark

Add Watermark to PNG in C# .NET

Add text or image watermark to PNG files within C#, ASP.NET, VB.NET, .NET Core, Xamarin and Mono based applications. Use advance watermark management & manipulation features to add various watermark types to PDF, Word, Excel, PowerPoint, Visio diagrams, Email attachments, animates GIFs, multi-page TIFF and raster image formats without using any other watermark tool or software. Choose to add watermark to whole PNG document, specific pages or a particular section on the pages, as you require. Images in documents can also be protected with watermarks.

Download

Add Image Watermark to PNG in .NET

Conholdate.Total for .NET makes it easy for .NET developers to add image watermark to PNG files by following a few easy steps.

  • Instantiate Watermarker with input PNG document
  • Use watermark image path as constructor parameter of ImageWatermark class
  • Set the watermark size and alignment
  • Add watermark to the watermarker and create output document

Download .NET Watermark API

The below code example requires GroupDocs.Watermark namespace to insert image watermark to PNG and other supported document formats on all popular operating systems such as Windows, Linux or macOS while using Windows Azure, Mono and Xamarin platforms.

Get the respective files from downloads or fetch the whole package from NuGet to add Conholdate.Total directly in your workspace.


Add Text Watermark to PNG in .NET

The below code example demonstrates how to add text watermark to a PNG file using a few lines of C# code. It will insert watermark to all the pages of the supported document formats.

  • Instantiate Watermarker with input PNG document
  • Initialize the Font to be used for watermark
  • Create the TextWatermark object
  • Set watermark properties (alignment, color etc)
  • Add watermark to the watermarker and generate output document

Watermark Photos and Documents

The .NET Watermark library is an all-in-one watermarks management solution to insert different types of customized watermarks to photos, images and confidential documents. Set watermark to all attachments in a PDF, email or an Excel file. Programmatically protect text watermark in documents using unreadable characters.

The supported watermark types include XObject, Artifact, Annotation, Shape, text and image.


What is PNG file format?

PNG, short for Portable Network Graphics, stands as a raster graphics file format renowned for its lossless data compression and its suitability for displaying images on the web. It has gained significant popularity among graphic designers and photographers who seek to store and showcase high-quality images. One of the distinctive features of PNG files is their support for transparency, setting them apart from JPEG files that cannot contain transparent areas.

The PNG file format provides several advantages that contribute to its appeal. Firstly, it supports 16-bit color, enabling the preservation of more accurate colors during image editing processes. This feature proves valuable for professionals working with intricate color details. Additionally, PNG supports gamma correction, ensuring that images display correctly across various systems. This capability helps to maintain consistent visual quality across different devices and platforms.

Furthermore, PNG employs lossless data compression, allowing for efficient reduction of file size without compromising image quality. This compression technique facilitates faster download times and improved web page loading performance. The smaller file sizes make PNG files more convenient to store, transfer, and share, making them an ideal choice for web-based applications.

PNG files have gained widespread support across major web browsers and operating systems, further contributing to their popularity. This compatibility ensures that PNG images can be reliably viewed and displayed across different platforms and devices, enhancing accessibility and user experience. Moreover, PNG is widely supported by various image editing and drawing software programs, including industry-standard applications like Adobe Photoshop. This compatibility allows professionals to work seamlessly with PNG files, leveraging advanced editing capabilities to achieve their desired outcomes.

Learn

Popular Document Watermark Options with .NET

Add Watermark to PDF Files

(Portable Document Format)

Add Watermark to WORD Files

(Word Processing Files)

Add Watermark to EXCEL Files

(Spreadsheet Files)

Add Watermark to IMAGE Files

(Digital Image Files)

Add Watermark to VISIO Files

(Visio Diagram Files)

Add Watermark to DOC Files

(Microsoft Word Binary Format)

Add Watermark to DOCX Files

(Office 2007+ Word Document)

Add Watermark to DOCM Files

(Microsoft Word 2007 Marco File)

Add Watermark to DOT Files

(Microsoft Word Template Files)

Add Watermark to DOTM Files

(Microsoft Word 2007+ Template File)

Add Watermark to DOTX Files

(Microsoft Word Template File )

Add Watermark to RTF Files

(Rich Text Format)

Add Watermark to XLS Files

(Microsoft Excel Spreadsheet (Legacy))

Add Watermark to XLSM Files

(Macro-enabled Spreadsheet)

Add Watermark to XLSX Files

(Open XML Workbook)

Add Watermark to XLT Files

(Excel 97 - 2003 Template)

Add Watermark to XLTM Files

(Excel Macro-Enabled Template)

Add Watermark to PPT Files

(Microsoft PowerPoint 97-2003)

Add Watermark to PPTX Files

(Open XML presentation Format)

Add Watermark to PPTM Files

(Macro-enabled Presentation File)

Add Watermark to PPS Files

(PowerPoint Slide Show)

Add Watermark to PPSX Files

(PowerPoint Slide Show)

Add Watermark to PPSM Files

(Macro-enabled Slide Show)

Add Watermark to POT Files

(Microsoft PowerPoint Template Files)

Add Watermark to POTX Files

(Microsoft PowerPoint Template Presentation)

Add Watermark to POTM Files

(Microsoft PowerPoint Template File)

Add Watermark to EMLX Files

(Apple Mail Message)

Add Watermark to OFT Files

(Outlook File Template)

Add Watermark to MSG Files

(Outlook Message Item File)

Add Watermark to ODT Files

(OpenDocument Text File Format)

Add Watermark to BMP Files

(Bitmap Image File)

Add Watermark to GIF Files

(Graphical Interchange Format)

Add Watermark to JPG Files

(Joint Photographic Expert Group Image)

Add Watermark to JPEG Files

(Joint Photographic Expert Group Image)

Add Watermark to JP2 Files

(JPEG 2000 Core Image)

Add Watermark to PNG Files

(Portable Network Graphic)

Add Watermark to TIFF Files

(Tagged Image File Format)

Add Watermark to WEBP Files

(Raster Web Image Format)

Add Watermark to VSD Files

(Visio Drawing File)

Add Watermark to VDX Files

(Vector Design eXchange)

Add Watermark to VSDM Files

(Visio Macro-Enabled Drawing)

Add Watermark to VSS Files

(Visio Stencil File)

Add Watermark to VSSM Files

(Visio SmartShape Master)

Add Watermark to VSSX Files

(Visio Stencil File)

Add Watermark to VST Files

(VST Audio Plugin)

Add Watermark to VSTM Files

(Visio Macro-Enabled Drawing Template)

Add Watermark to VSTX Files

(Visio Drawing Template)

Add Watermark to VSX Files

(Visio Stencil XML File)

Add Watermark to VTX Files

(Anim8or 3D Model)

Add Watermark to OST Files

(Outlook Offline Data File)

Add Watermark to SVG Files

(Scalar Vector Graphics)

Add Watermark to SVGZ Files

(Compressed Scalable Vector Graphics)

Add Watermark to PSB Files

(Photoshop Large Document Format)

Add Watermark to TEX Files

(LaTeX Source Document)

Add Watermark to TGA Files

(Truevision Graphics Adapter)

Add Watermark to XPS Files

(XML Paper Specifications)

Add Watermark to OTT Files

(OpenDocument Standard Format)

Add Watermark to OTP Files

(OpenDocument Standard Format)

Add Watermark to ODP Files

(OpenDocument Presentation Format)

Add Watermark to MD Files

(Markdown Language)

Add Watermark to PSD Files

(Photoshop Document)

Add Watermark to CSV Files

(Comma Seperated Values)

Add Watermark to DIF Files

(Data Interchange Format)

Add Watermark to DIB Files

(Device Independent Bitmap)

Add Watermark to HTM Files

(Hypertext Markup Language File)

Add Watermark to MHT Files

(MHTML Web Archive)

Add Watermark to EMZ Files

(Windows Compressed Enhanced Metafile)

Add Watermark to PCL Files

(Printer Command Language Document)

Add Watermark to WMF Files

(Windows Metafile)

 English