C# 클래스 Imgix_Dotnet.Operations.Size.SizeExtensions

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

공개 메소드들

메소드 설명
Crop ( this image, string cropMode ) : ImgixImage

Controls how the image is aligned when fit has been set to crop

Fit ( this image, string fit ) : ImgixImage

How is the output image fit into the target dimensions.

Height ( this image, double ratio ) : ImgixImage

Sets the output height of the transformed image as the ratio of the original size.

Height ( this image, int height ) : ImgixImage

Sets the output height of the transformed image.

Height ( this image, string height ) : ImgixImage

Sets the height of the transformed image.

Rect ( this image, int x, int y, int width, int height ) : ImgixImage

Selects a sub-reqion of the image to use for processing

Rect ( this image, string dimensions ) : ImgixImage

Selects a sub-reqion of the image to use for processing

Width ( this image, double ratio ) : ImgixImage

Sets the output width of the transformed image as the ratio of the original size.

Width ( this image, int width ) : ImgixImage

Sets the output width of the transformed image.

Width ( this image, string width ) : ImgixImage

Sets the width of the transformed image.

메소드 상세

Crop() 공개 정적인 메소드

Controls how the image is aligned when fit has been set to crop
public static Crop ( this image, string cropMode ) : ImgixImage
image this The image to transform
cropMode string /// The crop mode value. Can be a comma seperated list. /// Values: top, bottom, left, right, faces, entropy ///
리턴 ImgixImage

Fit() 공개 정적인 메소드

How is the output image fit into the target dimensions.
public static Fit ( this image, string fit ) : ImgixImage
image this The image to transform
fit string /// The fit mode /// Values: clamp, clip, crop, facearea, fill, max, min, scale ///
리턴 ImgixImage

Height() 공개 정적인 메소드

Sets the output height of the transformed image as the ratio of the original size.
public static Height ( this image, double ratio ) : ImgixImage
image this The image to transform
ratio double The ratio compared to the original image. Should be between 0,0 and 1.0
리턴 ImgixImage

Height() 공개 정적인 메소드

Sets the output height of the transformed image.
public static Height ( this image, int height ) : ImgixImage
image this The image to transform
height int The pixel height
리턴 ImgixImage

Height() 공개 정적인 메소드

Sets the height of the transformed image.
public static Height ( this image, string height ) : ImgixImage
image this The image to transform
height string The height value as a string
리턴 ImgixImage

Rect() 공개 정적인 메소드

Selects a sub-reqion of the image to use for processing
public static Rect ( this image, int x, int y, int width, int height ) : ImgixImage
image this The image to transform
x int The x position of the top left corner
y int The x position of the top left corner
width int The width of the rectangle
height int The height of the rectangle
리턴 ImgixImage

Rect() 공개 정적인 메소드

Selects a sub-reqion of the image to use for processing
public static Rect ( this image, string dimensions ) : ImgixImage
image this The image to transform
dimensions string /// A comma seperated string of integers of the format "x,y,width,height" ///
리턴 ImgixImage

Width() 공개 정적인 메소드

Sets the output width of the transformed image as the ratio of the original size.
public static Width ( this image, double ratio ) : ImgixImage
image this The image to transform
ratio double The ratio compared to the original image. Should be between 0,0 and 1.0
리턴 ImgixImage

Width() 공개 정적인 메소드

Sets the output width of the transformed image.
public static Width ( this image, int width ) : ImgixImage
image this The image to transform
width int The pixel width
리턴 ImgixImage

Width() 공개 정적인 메소드

Sets the width of the transformed image.
public static Width ( this image, string width ) : ImgixImage
image this The image to transform
width string The width value as a string
리턴 ImgixImage