C# Class ImageResizer.FluentExtensions.GradientExpression

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

Méthodes publiques

Méthode 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 méthode

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

Colors() public méthode

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.
Résultat GradientExpression

Dimensions() public méthode

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.
Résultat GradientExpression

GradientExpression() public méthode

public GradientExpression ( ImageUrlBuilder builder ) : System
builder ImageUrlBuilder
Résultat System