/// <summary> /// Adds a text based watermark to the current image. /// </summary> /// <param name="textLayer"> /// The <see cref="T:ImageProcessor.Imaging.TextLayer"/> containing the properties necessary to add /// the text based watermark to the image. /// </param> /// <returns> /// The current instance of the <see cref="T:ImageProcessor.ImageFactory"/> class. /// </returns> public ImageFactory Watermark(TextLayer textLayer) { if (this.ShouldProcess) { Watermark watermark = new Watermark { DynamicParameter = textLayer }; this.CurrentImageFormat.ApplyProcessor(watermark.ProcessImage, this); } return this; }
/// <summary> /// Adds a text based watermark to the current image. /// </summary> /// <param name="textLayer"> /// The <see cref="T:ImageProcessor.Imaging.TextLayer"/> containing the properties necessary to add /// the text based watermark to the image. /// </param> /// <returns> /// The current instance of the <see cref="T:ImageProcessor.ImageFactory"/> class. /// </returns> public ImageFactory Watermark(TextLayer textLayer) { if (this.ShouldProcess) { Watermark watermark = new Watermark { DynamicParameter = textLayer }; this.Image = watermark.ProcessImage(this); } return this; }