C# 클래스 ImageResizer.FluentExtensions.SimpleFiltersExpression

As expression for configuring simple filters options. For more information see http://imageresizing.net/plugins/simplefilters
상속: ImageUrlBuilderExpression
파일 보기 프로젝트 열기: benfoster/ImageResizer.FluentExtensions

공개 메소드들

메소드 설명
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