C# Class ImageResizer.FluentExtensions.GradientExpression

As expression for configuring gradient plugin options. For more information see http://imageresizing.net/plugins/gradient.
Inheritance: ImageUrlBuilderExpression
Show file Open project: benfoster/ImageResizer.FluentExtensions

Public Methods

Method Description
Angle ( int gradientAngle ) : GradientExpression

Sets the angle of the gradient.

Colors ( string color1, string color2 ) : GradientExpression

Sets the colors of the gradient. can be a named color, or a hex color. Accepts 6 and 8-digit hex values (last two digits of 8-digit hex values are for transparency).

Dimensions ( int width, int height ) : GradientExpression

Sets the dimensions of the gradient PNG.

GradientExpression ( ImageUrlBuilder builder ) : System

Method Details

Angle() public method

Sets the angle of the gradient.
public Angle ( int gradientAngle ) : GradientExpression
gradientAngle int The gradient angle in degrees.
return GradientExpression

Colors() public method

Sets the colors of the gradient. can be a named color, or a hex color. Accepts 6 and 8-digit hex values (last two digits of 8-digit hex values are for transparency).
public Colors ( string color1, string color2 ) : GradientExpression
color1 string The first color in the gradient.
color2 string The second color in the gradient.
return GradientExpression

Dimensions() public method

Sets the dimensions of the gradient PNG.
public Dimensions ( int width, int height ) : GradientExpression
width int The desired width in pixels.
height int The desired height in pixels.
return GradientExpression

GradientExpression() public method

public GradientExpression ( ImageUrlBuilder builder ) : System
builder ImageUrlBuilder
return System