C# Class Imgix_Dotnet.Operations.Blend.BlendExtensions

ImgixImage extension methods that sets blend related parameters on the Url.
Show file Open project: estei/Imgix-Dotnet

Public Methods

Method Description
Blend ( this image, string value ) : ImgixImage

Blend the image with either a color or a different image

BlendAlign ( this image, string value ) : ImgixImage

Adjusts the alignment of the image being applied to the source image

BlendAlpha ( this image, int value ) : ImgixImage

Sets the transparency of the blend image or color

BlendCrop ( this image, string value ) : ImgixImage

When Blend Fit is set to crop how should the blend imge align

BlendFit ( this image, string value ) : ImgixImage

How is the blend image fit to its bw and or bh dimensions

BlendHeight ( this image, int value ) : ImgixImage

The height of the blend image

BlendMode ( this image, string value ) : ImgixImage

How is the blending supposed to happen

BlendPadding ( this image, int value ) : ImgixImage

Padds the blending image

BlendSize ( this image, string value ) : ImgixImage

The size of the blend image.

BlendWidth ( this image, int value ) : ImgixImage

The width of the blend image

BlendXPosition ( this image, int value ) : ImgixImage

Positions blend image horisontally from the left

BlendYPosition ( this image, int value ) : ImgixImage

Positions blend image vertically from the top

Method Details

Blend() public static method

Blend the image with either a color or a different image
public static Blend ( this image, string value ) : ImgixImage
image this The image to transform
value string /// Values: /// Color: 3, 6 or 8 char hexadecimal color. /// Image: A url to the image. ///
return ImgixImage

BlendAlign() public static method

Adjusts the alignment of the image being applied to the source image
public static BlendAlign ( this image, string value ) : ImgixImage
image this The image to transform
value string /// One or more of the following values seperated by comma /// Values: top, middle, bottom, left, center, and right ///
return ImgixImage

BlendAlpha() public static method

Sets the transparency of the blend image or color
public static BlendAlpha ( this image, int value ) : ImgixImage
image this The image to transform
value int /// Values: 0-100 /// 0: Fully transparant /// 100: Fully opaque ///
return ImgixImage

BlendCrop() public static method

When Blend Fit is set to crop how should the blend imge align
public static BlendCrop ( this image, string value ) : ImgixImage
image this The image to transform
value string /// Values: top, bottom, left, right, and faces /// You can add multiple values seperated by commas. ///
return ImgixImage

BlendFit() public static method

How is the blend image fit to its bw and or bh dimensions
public static BlendFit ( this image, string value ) : ImgixImage
image this The image to transform
value string /// Values: clamp, clip, crop, max, and scale ///
return ImgixImage

BlendHeight() public static method

The height of the blend image
public static BlendHeight ( this image, int value ) : ImgixImage
image this The image to transform
value int /// The height of the image ///
return ImgixImage

BlendMode() public static method

How is the blending supposed to happen
public static BlendMode ( this image, string value ) : ImgixImage
image this The image to transform
value string /// Values: color, burn, dodge, darken, difference, exclusion, hardlight, hue, lighten, luminosity, multiply, overlay, saturation, screen, softlight, and normal ///
return ImgixImage

BlendPadding() public static method

Padds the blending image
public static BlendPadding ( this image, int value ) : ImgixImage
image this The image to transform
value int /// The amount of pixels that the image will be padded ///
return ImgixImage

BlendSize() public static method

The size of the blend image.
public static BlendSize ( this image, string value ) : ImgixImage
image this The image to transform
value string /// Only one valid value: inherit ///
return ImgixImage

BlendWidth() public static method

The width of the blend image
public static BlendWidth ( this image, int value ) : ImgixImage
image this The image to transform
value int /// The width of the image ///
return ImgixImage

BlendXPosition() public static method

Positions blend image horisontally from the left
public static BlendXPosition ( this image, int value ) : ImgixImage
image this The image to transform
value int /// Default: 0 ///
return ImgixImage

BlendYPosition() public static method

Positions blend image vertically from the top
public static BlendYPosition ( this image, int value ) : ImgixImage
image this The image to transform
value int /// Default: 0 ///
return ImgixImage