Skip to content

Watermark Processor

The Watermark processor gives you the ability to place watermark-like effects on any image.

Watermark

Properties

HorizontalWatermarkLocation - WatermarkLocation

Gets or sets the horizontal position of the watermark. Can be set to one of the following:

public enum WatermarkLocation
        {
            Start,
            Center,
            End
        }

VerticalWatermarkLocation - WatermarkLocation

Gets or sets the vertical position of the watermark. Can be set to one of the following:

public enum WatermarkLocation
        {
            Start,
            Center,
            End
        }

WatermarkPadding - double

Gets or sets the padding of the watermark. Default value is 8d.

WatermarkText - string

Gets or sets the text.

FontSize - double

Gets or sets the font size. Default value is 24d.

Typeface - SKTypeFace

Gets or sets the typeface.

ForegroundColor - Color

Gets or sets the color of the foreground. Default value is Color.White.MultiplyAlpha(.5d).

BackgroundColor - Color

Gets or sets the color of the background.

BackgroundCornerRadius - double

Gets or sets the corner radius of the background. Default value is 4d.

Example Usage

Xaml

<Image.Effects>
    <auroraEffects:ImageProcessingEffect>
        <auroraEffects:ImageProcessingEffect.ImageProcessingEffects>
            <auroraImageProcessing:Watermark VerticalWatermarkLocation="Center" BackgroundCornerRadius="8" />
        </auroraEffects:ImageProcessingEffect.ImageProcessingEffects>
    </auroraEffects:ImageProcessingEffect>
</Image.Effects>

C#