C# Class ImageProcessor.Processors.Watermark

Encapsulates methods to add a watermark text overlay to an image.
Inheritance: IGraphicsProcessor
Show file Open project: JimBobSquarePants/ImageProcessor Class Usage Examples

Public Methods

Method Description
ProcessImage ( ImageFactory factory ) : Image

Processes the image.

Watermark ( ) : System

Initializes a new instance of the Watermark class.

Private Methods

Method Description
GetFlags ( ImageProcessor.Imaging.TextLayer textLayer ) : StringFormatFlags?

Returns the correct flags for the given text layer.

GetFont ( FontFamily fontFamily, int fontSize, FontStyle fontStyle ) : Font

Returns the correct T:System.Drawing.Font for the given parameters.

GetRotateFlipType ( ImageFactory factory ) : RotateFlipType?

Gets the correct Nullable{RotateFlipType} to ensure that the watermarked image is correct orientation when the watermark is applied.

Method Details

ProcessImage() public method

Processes the image.
public ProcessImage ( ImageFactory factory ) : Image
factory ImageFactory /// The current instance of the class containing /// the image to process. ///
return Image

Watermark() public method

Initializes a new instance of the Watermark class.
public Watermark ( ) : System
return System