C# Class ImageResizer.FluentExtensions.OutputExpression

As expression for configuring image putput options
Inheritance: ImageUrlBuilderExpression
Mostra file Open project: benfoster/ImageResizer.FluentExtensions

Public Methods

Method Description
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.

Private Methods

Method Description
OutputExpression ( ImageUrlBuilder builder ) : System

Method Details

Colors() public method

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
return OutputExpression

Format() public method

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
return OutputExpression

Quality() public method

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
return OutputExpression

SpeedOrQuality() public method

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)
return OutputExpression