C# Класс ImageResizer.FluentExtensions.SimpleFiltersExpression

As expression for configuring simple filters options. For more information see http://imageresizing.net/plugins/simplefilters
Наследование: ImageUrlBuilderExpression
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

Alpha() публичный Метод

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)
Результат SimpleFiltersExpression

Brightness() публичный Метод

Adjust the brightness of an image
public Brightness ( double adjustment ) : SimpleFiltersExpression
adjustment double A value between -1 (darker) and 1 (lighter)
Результат SimpleFiltersExpression

Contrast() публичный Метод

Adjusts the contrast of an image
public Contrast ( double adjustment ) : SimpleFiltersExpression
adjustment double A value between -1 (decrease contrast) and 1 (increase contrast)
Результат SimpleFiltersExpression

Grayscale() публичный Метод

Applies a greyscale filter - equivalent to greyscale = true|y|ntsc
public Grayscale ( ) : SimpleFiltersExpression
Результат SimpleFiltersExpression

Grayscale() публичный Метод

Applies a greyscale filter. For default/NTSC filter use Greyscale()
public Grayscale ( GrayscaleOptions grayScaleOptions ) : SimpleFiltersExpression
grayScaleOptions GrayscaleOptions The type of greyscale to apply
Результат SimpleFiltersExpression

Invert() публичный Метод

Inverts an image
public Invert ( ) : SimpleFiltersExpression
Результат SimpleFiltersExpression

RoundedCorners() публичный Метод

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
Результат SimpleFiltersExpression

RoundedCorners() публичный Метод

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
Результат SimpleFiltersExpression

Saturate() публичный Метод

Adjusts the saturation of an image
public Saturate ( double adjustment ) : SimpleFiltersExpression
adjustment double A value between -1 (decrease saturation) and 1 (increase saturation)
Результат SimpleFiltersExpression

Sepia() публичный Метод

Applies a sepia filter
public Sepia ( ) : SimpleFiltersExpression
Результат SimpleFiltersExpression

SimpleFiltersExpression() публичный Метод

public SimpleFiltersExpression ( ImageUrlBuilder builder ) : System
builder ImageUrlBuilder
Результат System