C# Class Imgix_Dotnet.Operations.Watermark.WatermarkExtensions

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

Méthodes publiques

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

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

MarkAlign() public static méthode

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

MarkAlpha() public static méthode

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

MarkBase() public static méthode

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

MarkFit() public static méthode

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

MarkHeight() public static méthode

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

MarkHeight() public static méthode

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

MarkPadding() public static méthode

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

MarkScale() public static méthode

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

MarkWidth() public static méthode

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

MarkWidth() public static méthode

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

MarkXPosition() public static méthode

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

MarkYPosition() public static méthode

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