C# 클래스 ImageResizer.FluentExtensions.OutputExpression

As expression for configuring image putput options
상속: ImageUrlBuilderExpression
파일 보기 프로젝트 열기: benfoster/ImageResizer.FluentExtensions

공개 메소드들

메소드 설명
Colors ( int numberOfColors ) : OutputExpression

Control the palette size of PNG and GIF images. If omitted, PNGs will be 24-bit. (PrettyGifs plugin required)

Format ( OutputFormat format ) : OutputExpression

Sets the output format to use. By default, the original format (or the closest match) is used.

Quality ( int compression ) : OutputExpression

Sets the Jpeg compression for the image

SpeedOrQuality ( int quality ) : OutputExpression

Gain a 15-30% speed boost by sacrificing rendering quality. For more information see http://imageresizing.net/plugins/speedorquality.

비공개 메소드들

메소드 설명
OutputExpression ( ImageUrlBuilder builder ) : System

메소드 상세

Colors() 공개 메소드

Control the palette size of PNG and GIF images. If omitted, PNGs will be 24-bit. (PrettyGifs plugin required)
public Colors ( int numberOfColors ) : OutputExpression
numberOfColors int A number between 2 and 255
리턴 OutputExpression

Format() 공개 메소드

Sets the output format to use. By default, the original format (or the closest match) is used.
public Format ( OutputFormat format ) : OutputExpression
format OutputFormat The desired output format
리턴 OutputExpression

Quality() 공개 메소드

Sets the Jpeg compression for the image
public Quality ( int compression ) : OutputExpression
compression int Jpeg compression: 0-100 100=best, 90=very good balance, 0=ugly
리턴 OutputExpression

SpeedOrQuality() 공개 메소드

Gain a 15-30% speed boost by sacrificing rendering quality. For more information see http://imageresizing.net/plugins/speedorquality.
public SpeedOrQuality ( int quality ) : OutputExpression
quality int A value between 0 (highest quality) and 3 (lowest quality, highest speed)
리턴 OutputExpression