C# Class Imgix_Dotnet.Operations.Watermark.WatermarkExtensions

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

Public Methods

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

Adds a watermark to the image

MarkAlign ( this image, string value ) : ImgixImage

Aligns the watermark image inside the source image.

MarkAlpha ( this image, int value ) : ImgixImage

Adjusts the alpha blend of the watermark

MarkBase ( this image, string value ) : ImgixImage

Sets the base url watermarks. This is mostly for setting in the imgix backend to keep urls short.

MarkFit ( this image, string value ) : ImgixImage

Sets the watermark fit mode.

MarkHeight ( this image, double value ) : ImgixImage

Sets the watermark height ratio

MarkHeight ( this image, int value ) : ImgixImage

Sets the watermark height

MarkPadding ( this image, int value ) : ImgixImage

The padding around the watermark

MarkScale ( this image, int value ) : ImgixImage

Watermark size scaled as a percentage

MarkWidth ( this image, double value ) : ImgixImage

Sets the watermark width ratio

MarkWidth ( this image, int value ) : ImgixImage

Sets the watermark width

MarkXPosition ( this image, int value ) : ImgixImage

Absolute horizontal position of the watermark from the aligned edge.

MarkYPosition ( this image, int value ) : ImgixImage

Absolute vertical position of the watermark from the aligned edge.

Method Details

Mark() public static method

Adds a watermark to the image
public static Mark ( this image, string value ) : ImgixImage
image this The image to transform
value string /// The URL to the image used as watermark. /// Can be relative or absolute /// See the documentation for restrictions ///
return ImgixImage

MarkAlign() public static method

Aligns the watermark image inside the source image.
public static MarkAlign ( this image, string value ) : ImgixImage
image this The image to transform
value string /// Values: top, middle, bottom, left, center, and right /// Default: bottom,right /// Multiple values can be set seperated by comma ///
return ImgixImage

MarkAlpha() public static method

Adjusts the alpha blend of the watermark
public static MarkAlpha ( this image, int value ) : ImgixImage
image this The image to transform
value int /// Values: 0-100 ///
return ImgixImage

MarkBase() public static method

Sets the base url watermarks. This is mostly for setting in the imgix backend to keep urls short.
public static MarkBase ( this image, string value ) : ImgixImage
image this The image to transform
value string /// The base url for your watermarks. ///
return ImgixImage

MarkFit() public static method

Sets the watermark fit mode.
public static MarkFit ( this image, string value ) : ImgixImage
image this The image to transform
value string /// Values: clip, crop, max, and scale ///
return ImgixImage

MarkHeight() public static method

Sets the watermark height ratio
public static MarkHeight ( this image, double value ) : ImgixImage
image this The image to transform
value double /// The size ratio compared to its original size. /// Vaalues: 0.0 - 1.0 ///
return ImgixImage

MarkHeight() public static method

Sets the watermark height
public static MarkHeight ( this image, int value ) : ImgixImage
image this The image to transform
value int /// The height in pixels /// Max: 2000 ///
return ImgixImage

MarkPadding() public static method

The padding around the watermark
public static MarkPadding ( this image, int value ) : ImgixImage
image this The image to transform
value int /// The amoount of padding in pixels. ///
return ImgixImage

MarkScale() public static method

Watermark size scaled as a percentage
public static MarkScale ( this image, int value ) : ImgixImage
image this The image to transform
value int /// The size as percentage ///
return ImgixImage

MarkWidth() public static method

Sets the watermark width ratio
public static MarkWidth ( this image, double value ) : ImgixImage
image this The image to transform
value double /// The size ratio compared to its original size. /// Vaalues: 0.0 - 1.0 ///
return ImgixImage

MarkWidth() public static method

Sets the watermark width
public static MarkWidth ( this image, int value ) : ImgixImage
image this The image to transform
value int /// The width in pixels /// Max: 2000 ///
return ImgixImage

MarkXPosition() public static method

Absolute horizontal position of the watermark from the aligned edge.
public static MarkXPosition ( this image, int value ) : ImgixImage
image this The image to transform
value int /// Pixels from the edge ///
return ImgixImage

MarkYPosition() public static method

Absolute vertical position of the watermark from the aligned edge.
public static MarkYPosition ( this image, int value ) : ImgixImage
image this The image to transform
value int /// Pixels from the edge ///
return ImgixImage