C# Class Imgix_Dotnet.Operations.Size.SizeExtensions

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

Méthodes publiques

Méthode 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 méthode

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 ///
Résultat ImgixImage

Fit() public static méthode

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 ///
Résultat ImgixImage

Height() public static méthode

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
Résultat ImgixImage

Height() public static méthode

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
Résultat ImgixImage

Height() public static méthode

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
Résultat ImgixImage

Rect() public static méthode

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
Résultat ImgixImage

Rect() public static méthode

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" ///
Résultat ImgixImage

Width() public static méthode

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
Résultat ImgixImage

Width() public static méthode

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
Résultat ImgixImage

Width() public static méthode

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
Résultat ImgixImage