C# Class Imgix_Dotnet.Operations.Trim.TrimExtensions

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

Méthodes publiques

Méthode Description
Trim ( this image, string value ) : ImgixImage

Adds the trim parameter to the image url.

TrimColor ( this image, string value ) : ImgixImage

Adds the timecolor parameter to the image url

TrimMeanDifference ( this image, int value ) : ImgixImage

The difference threshhold used when trimming a border. Only valid when trim is set to auto

TrimStandardDeviation ( this image, int value ) : ImgixImage

Defines the standard deviation among pixels in a border. Only valid when trim is set to auto

TrimTolerance ( this image, int value ) : ImgixImage

DEfines the tolerance when trim has been set to color.

Method Details

Trim() public static méthode

Adds the trim parameter to the image url.
public static Trim ( this image, string value ) : ImgixImage
image this The image to transform
value string /// The trim operation to perform /// Values: auto or color ///
Résultat ImgixImage

TrimColor() public static méthode

Adds the timecolor parameter to the image url
public static TrimColor ( this image, string value ) : ImgixImage
image this The image to transform
value string /// A three or six char hex color string ///
Résultat ImgixImage

TrimMeanDifference() public static méthode

The difference threshhold used when trimming a border. Only valid when trim is set to auto
public static TrimMeanDifference ( this image, int value ) : ImgixImage
image this The image to transform
value int /// A lower value makes the trimming more aggressive /// Default: 11 ///
Résultat ImgixImage

TrimStandardDeviation() public static méthode

Defines the standard deviation among pixels in a border. Only valid when trim is set to auto
public static TrimStandardDeviation ( this image, int value ) : ImgixImage
image this The image to transform
value int /// The standard deviation /// Default: 10 ///
Résultat ImgixImage

TrimTolerance() public static méthode

DEfines the tolerance when trim has been set to color.
public static TrimTolerance ( this image, int value ) : ImgixImage
image this The image to transform
value int /// The tolerance /// Default: 0 ///
Résultat ImgixImage