C# 클래스 Imgix_Dotnet.Operations.Format.FormatExtensions

ImgixImage extension methods that sets format related parameters on the Url.
파일 보기 프로젝트 열기: estei/Imgix-Dotnet

공개 메소드들

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