Table of Contents

Method ApplyWatermark

Namespace
LMKit.Media.Image
Assembly
LM-Kit.NET.dll

ApplyWatermark(Watermark)

Burns a visible watermark into this picture's pixels, in place. Apply it to the output size (after any resize), so the mark is drawn crisp at the resolution the reader receives.

public void ApplyWatermark(Watermark watermark)

Parameters

watermark Watermark

What to draw and where.

Exceptions

ArgumentNullException

watermark is null.

ArgumentException

The watermark has neither text nor logo, its text is too long, or its font is not a font.

NotSupportedException

The picture is one-bit (convert it to GRAY8 first).

WatermarkCharactersException

The text holds characters no available font can draw (listed on the exception).

ObjectDisposedException

This instance, or the watermark's logo, has been disposed.

Share