Devesprit.ImageProcessor & Devesprit.ImageServer
Watermark

Description:

Adds a text based watermark to the current image.

Method Declaration
Copy Code
public ImageFactory Watermark(TextLayer textLayer)

TextLayer:

Text The text to write to the image.
Color The System.Drawing.Color to render the text.
Font The name of the font to apply to the text.
FontSize The size of the text in pixels.
Style The System.Drawing.FontStyle to apply to the text.
Opacity The opacity of the text.
Position The Nullable<System.Drawing.Point> determining the position within the current image to render the overlay. If not set then the text will be centered.
DropShadow Whether to apply a drop shadow to the text.

Assembly:

Devesprit.ImageProcessor

Example
Copy Code
new ImageFactory().Load(@"My-Image-Path")
.Watermark(new TextLayer() {Text = "Devesprit.ImageServer", DropShadow = true, FontColor = Color.White});

Original

 

Result