Search Results for

    Show / Hide Table of Contents

    Class WatermarkAction

    An ImageAction that allows rendering a watermark to an image

    Inheritance
    System.Object
    ImageActionBase
    WatermarkAction
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: System.Dynamic.ExpandoObject
    Syntax
    public class WatermarkAction : ImageActionBase

    Properties

    HeightRatio

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

    Declaration
    public float HeightRatio { get; set; }
    Property Value
    System.Single

    MarginBottom

    Margin to the bottom of the image, in pixels

    Declaration
    public int? MarginBottom { get; set; }
    Property Value
    System.Nullable<System.Int32>

    MarginLeft

    Margin to the left border of the image, in pixels

    Declaration
    public int? MarginLeft { get; set; }
    Property Value
    System.Nullable<System.Int32>

    MarginRight

    Margin to the right border of the image, in pixels

    Declaration
    public int? MarginRight { get; set; }
    Property Value
    System.Nullable<System.Int32>

    MarginTop

    Margin to the top of the image, in pixels

    Declaration
    public int? MarginTop { get; set; }
    Property Value
    System.Nullable<System.Int32>

    Opacity

    Scales the opacity of the watermark

    Declaration
    public float Opacity { get; set; }
    Property Value
    System.Single

    WatermarkFilePath

    Identifies the image to be used as watermark

    Declaration
    public string WatermarkFilePath { get; set; }
    Property Value
    System.String

    WidthRatio

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

    Declaration
    public float WidthRatio { get; set; }
    Property Value
    System.Single

    Methods

    FromJson(String)

    Declaration
    public static WatermarkAction FromJson(string data)
    Parameters
    System.String data

    Returns
    WatermarkAction

    ToJson()

    Declaration
    public string ToJson()
    Returns
    System.String

    Back to top Generated by DocFX