C# Class ImageResizer.FluentExtensions.SimpleFiltersExpression

As expression for configuring simple filters options. For more information see http://imageresizing.net/plugins/simplefilters
Inheritance: ImageUrlBuilderExpression
Datei anzeigen Open project: benfoster/ImageResizer.FluentExtensions

Public Methods

Method Description
Alpha ( double adjustment ) : SimpleFiltersExpression

Adjusts the alpha (transparancy) of an image. For true transparency compine with ImageUrlBuilder.Output(img => img.Format(OutputFormat.Png)

Brightness ( double adjustment ) : SimpleFiltersExpression

Adjust the brightness of an image

Contrast ( double adjustment ) : SimpleFiltersExpression

Adjusts the contrast of an image

Grayscale ( ) : SimpleFiltersExpression

Applies a greyscale filter - equivalent to greyscale = true|y|ntsc

Grayscale ( GrayscaleOptions grayScaleOptions ) : SimpleFiltersExpression

Applies a greyscale filter. For default/NTSC filter use Greyscale()

Invert ( ) : SimpleFiltersExpression

Inverts an image

RoundedCorners ( int radiusPercentage ) : SimpleFiltersExpression

Adds evenly rounded corners to an image

RoundedCorners ( int topLeft, int topRight, int bottomRight, int bottomLeft ) : SimpleFiltersExpression

Adds rounded corners to an image. Radius is a percentage between 0 and 100 of 1/2 the smaller of width and height

Saturate ( double adjustment ) : SimpleFiltersExpression

Adjusts the saturation of an image

Sepia ( ) : SimpleFiltersExpression

Applies a sepia filter

SimpleFiltersExpression ( ImageUrlBuilder builder ) : System

Method Details

Alpha() public method

Adjusts the alpha (transparancy) of an image. For true transparency compine with ImageUrlBuilder.Output(img => img.Format(OutputFormat.Png)
public Alpha ( double adjustment ) : SimpleFiltersExpression
adjustment double A value between 0 (transparent) and 1 (non transparent)
return SimpleFiltersExpression

Brightness() public method

Adjust the brightness of an image
public Brightness ( double adjustment ) : SimpleFiltersExpression
adjustment double A value between -1 (darker) and 1 (lighter)
return SimpleFiltersExpression

Contrast() public method

Adjusts the contrast of an image
public Contrast ( double adjustment ) : SimpleFiltersExpression
adjustment double A value between -1 (decrease contrast) and 1 (increase contrast)
return SimpleFiltersExpression

Grayscale() public method

Applies a greyscale filter - equivalent to greyscale = true|y|ntsc
public Grayscale ( ) : SimpleFiltersExpression
return SimpleFiltersExpression

Grayscale() public method

Applies a greyscale filter. For default/NTSC filter use Greyscale()
public Grayscale ( GrayscaleOptions grayScaleOptions ) : SimpleFiltersExpression
grayScaleOptions GrayscaleOptions The type of greyscale to apply
return SimpleFiltersExpression

Invert() public method

Inverts an image
public Invert ( ) : SimpleFiltersExpression
return SimpleFiltersExpression

RoundedCorners() public method

Adds evenly rounded corners to an image
public RoundedCorners ( int radiusPercentage ) : SimpleFiltersExpression
radiusPercentage int A percentage between 0 and 100 of 1/2 the smaller of width and height
return SimpleFiltersExpression

RoundedCorners() public method

Adds rounded corners to an image. Radius is a percentage between 0 and 100 of 1/2 the smaller of width and height
public RoundedCorners ( int topLeft, int topRight, int bottomRight, int bottomLeft ) : SimpleFiltersExpression
topLeft int Top left percentage
topRight int Top right percentage
bottomRight int Bottom right percentage
bottomLeft int Bottom left percentage
return SimpleFiltersExpression

Saturate() public method

Adjusts the saturation of an image
public Saturate ( double adjustment ) : SimpleFiltersExpression
adjustment double A value between -1 (decrease saturation) and 1 (increase saturation)
return SimpleFiltersExpression

Sepia() public method

Applies a sepia filter
public Sepia ( ) : SimpleFiltersExpression
return SimpleFiltersExpression

SimpleFiltersExpression() public method

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