C# Class Imgix_Dotnet.Operations.Size.SizeExtensions

ImgixImage extension methods that set size related parameters on the Url.
Exibir arquivo Open project: estei/Imgix-Dotnet

Public Methods

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

Method Details

Crop() public static method

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 ///
return ImgixImage

Fit() public static method

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 ///
return ImgixImage

Height() public static method

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

Height() public static method

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

Height() public static method

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

Rect() public static method

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

Rect() public static method

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" ///
return ImgixImage

Width() public static method

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

Width() public static method

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

Width() public static method

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