C# Class Imgix_Dotnet.Operations.Trim.TrimExtensions

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

Public Methods

Method 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 method

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

TrimColor() public static method

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

TrimMeanDifference() public static method

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

TrimStandardDeviation() public static method

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

TrimTolerance() public static method

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