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

As expression for configuring image putput options
Наследование: ImageUrlBuilderExpression
Показать файл Открыть проект

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

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