Class WatermarkAction
  An ImageAction that allows rendering a watermark to an image
    Inheritance
    
    
    WatermarkAction
   
  
  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
  
     
    
  
  
    
  
  
  
  
  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
  
   
  
     
    
  
  
    
  
  
  
  
  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
  
   
  
     
    
  
  
    
  
  
  
  
  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
  
   
  
     
    
  
  
    
  
  
  
  
  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
  
   
  
     
    
  
  
    
  
  
  
  
  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
  
   
  
     
    
  
  
    
  
  
  
  
  Scales the opacity of the watermark
Declaration
  
    [JsonProperty("opacity", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public float Opacity { get; set; }
   
  Property Value
  
   
  
     
    
  
  
    
  
  
  
  
  Identifies the image to be used as watermark
Declaration
  
    [JsonProperty("watermarkFilePath", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public string WatermarkFilePath { get; set; }
   
  Property Value
  
   
  
     
    
  
  
    
  
  
  
  
  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
  
   
  Methods
  
     
    
  
  
    
  
  
  
  
  
  
  Declaration
  
    public static WatermarkAction FromJson(string data)
   
  Parameters
  
  Returns