C# Класс Imgix_Dotnet.Operations.Format.FormatExtensions

ImgixImage extension methods that sets format related parameters on the Url.
Показать файл Открыть проект

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

Метод Описание
ChromaSubsampling ( this image, int value ) : ImgixImage

Chroma subsampling for JPEG and Progressive JPEG

ClientHints ( this image, string value ) : ImgixImage

Adds ch parameter opting in to using client hints.

ColorQuantization ( this image, int value ) : ImgixImage

Adds color quantization to the image, limiting the amount of colors in the image.

DPI ( this image, int value ) : ImgixImage

Sets the DPI value in the Exif header

Download ( this image, string value ) : ImgixImage

When used in an a tag forces download with the specified name

Lossless ( this image, string value ) : ImgixImage

Should the returned image be lossless

OutputFormat ( this image, string value ) : ImgixImage

Sets the output format of the image.

Quality ( this image, int value ) : ImgixImage

SEts the oputput quality of the image

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

ChromaSubsampling() публичный статический Метод

Chroma subsampling for JPEG and Progressive JPEG
public static ChromaSubsampling ( this image, int value ) : ImgixImage
image this The image to transform
value int /// Values: 420, 422, and 444 /// Default: 420 ///
Результат ImgixImage

ClientHints() публичный статический Метод

Adds ch parameter opting in to using client hints.
public static ClientHints ( this image, string value ) : ImgixImage
image this The image to transform
value string /// A comma seperated list of hints /// Values: Width and DPR are currently supported ///
Результат ImgixImage

ColorQuantization() публичный статический Метод

Adds color quantization to the image, limiting the amount of colors in the image.
public static ColorQuantization ( this image, int value ) : ImgixImage
image this The image to transform
value int /// Values: 2-256 ///
Результат ImgixImage

DPI() публичный статический Метод

Sets the DPI value in the Exif header
public static DPI ( this image, int value ) : ImgixImage
image this The image to transform
value int /// The DPI value ///
Результат ImgixImage

Download() публичный статический Метод

When used in an a tag forces download with the specified name
public static Download ( this image, string value ) : ImgixImage
image this The image to transform
value string /// The download name of the image ///
Результат ImgixImage

Lossless() публичный статический Метод

Should the returned image be lossless
public static Lossless ( this image, string value ) : ImgixImage
image this The image to transform
value string /// Values: 0, 1, true, false ///
Результат ImgixImage

OutputFormat() публичный статический Метод

Sets the output format of the image.
public static OutputFormat ( this image, string value ) : ImgixImage
image this The image to transform
value string /// The format name /// Values: gif, jp2, jpg, json, jxr, pjpg, mp4, png, png8, png32, webp ///
Результат ImgixImage

Quality() публичный статический Метод

SEts the oputput quality of the image
public static Quality ( this image, int value ) : ImgixImage
image this The image to transform
value int /// Values: 0-100 /// Default: 75 ///
Результат ImgixImage