C# Class ImageProcessor.Web.Processors.Watermark

Encapsulates methods to add a watermark text overlay to an image.
Inheritance: IWebGraphicsProcessor
Mostra file Open project: JimBobSquarePants/ImageProcessor

Public Methods

Method Description
MatchRegexIndex ( string queryString ) : int

The position in the original string where the first character of the captured substring was found.

Watermark ( ) : System.Collections.Specialized

Initializes a new instance of the Watermark class.

Private Methods

Method Description
ParseColor ( NameValueCollection queryCollection ) : Color

Returns the correct T:System.Drawing.Color for the given parameter collection.

ParseDropShadow ( NameValueCollection queryCollection ) : bool

Returns a value indicating whether the watermark is to have a shadow.

ParseFontFamily ( NameValueCollection queryCollection ) : FontFamily

Returns the correct FontFamily for the given parameter collection.

ParseFontSize ( NameValueCollection queryCollection ) : int

Returns the correct T:System.Int32 for the given parameter collection.

ParseFontStyle ( NameValueCollection queryCollection ) : FontStyle

Returns the correct T:System.Drawing.FontStyle for the given parameter collection.

ParseOpacity ( NameValueCollection queryCollection, Color color ) : int

Returns the correct T:System.Int32 containing the opacity for the parameter collection.

ParsePosition ( NameValueCollection queryCollection ) : Point?

Returns the correct T:System.Drawing.Point for the given parameter collection.

ParseRightToLeft ( NameValueCollection queryCollection ) : bool

Returns a value indicating whether the watermark is to be written right to left.

ParseText ( NameValueCollection queryCollection ) : string

Returns the correct T:System.String for the given parameter collection.

ParseVertical ( NameValueCollection queryCollection ) : bool

Returns a value indicating whether the watermark is to be written vertically.

Method Details

MatchRegexIndex() public method

The position in the original string where the first character of the captured substring was found.
public MatchRegexIndex ( string queryString ) : int
queryString string /// The query string to search. ///
return int

Watermark() public method

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