Watermark
Adds a text based watermark to the current image.
public ImageFactory Watermark (TextLayer textLayer)
Parameters
- textLayer
-
The
ImageProcessor.Imaging.TextLayercontaining the properties necessary to add the text based watermark to the image.- Text
- The text to write to the image.
- Color
- The
System.Drawing.Colorto 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.FontStyleto 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.
Remarks
When no position is set the text will default to the center of the image. When no font is set the default system sans-serif font will be used.
Examples
Original
Watermarked