Search Results for

    Show / Hide Table of Contents

    Class WatermarkAction

    An ImageAction that allows rendering a watermark to an image

    Inheritance
    object
    ImageActionBase
    WatermarkAction
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: System.Dynamic.ExpandoObject
    Syntax
    [GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0))")]
    public class WatermarkAction : ImageActionBase

    Properties

    HeightRatio

    Scales the watermark height according to the size of the final image.

    Declaration
    [JsonProperty("heightRatio", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
    public float HeightRatio { get; set; }
    Property Value
    float

    MarginBottom

    Margin to the bottom of the image, in pixels

    Declaration
    [JsonProperty("marginBottom", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
    public int? MarginBottom { get; set; }
    Property Value
    int?

    MarginLeft

    Margin to the left border of the image, in pixels

    Declaration
    [JsonProperty("marginLeft", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
    public int? MarginLeft { get; set; }
    Property Value
    int?

    MarginRight

    Margin to the right border of the image, in pixels

    Declaration
    [JsonProperty("marginRight", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
    public int? MarginRight { get; set; }
    Property Value
    int?

    MarginTop

    Margin to the top of the image, in pixels

    Declaration
    [JsonProperty("marginTop", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
    public int? MarginTop { get; set; }
    Property Value
    int?

    Opacity

    Scales the opacity of the watermark

    Declaration
    [JsonProperty("opacity", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
    public float Opacity { get; set; }
    Property Value
    float

    WatermarkFilePath

    Identifies the image to be used as watermark

    Declaration
    [JsonProperty("watermarkFilePath", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
    public string WatermarkFilePath { get; set; }
    Property Value
    string

    WidthRatio

    Scales the watermark width according to the size of the final image.

    Declaration
    [JsonProperty("widthRatio", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
    public float WidthRatio { get; set; }
    Property Value
    float

    Methods

    FromJson(string)

    Declaration
    public static WatermarkAction FromJson(string data)
    Parameters
    string data

    Returns
    WatermarkAction

    ToJson()

    Declaration
    public string ToJson()
    Returns
    string

    Back to top Generated by DocFX