com.groupdocs.watermark.watermarks

Class SizingType



  • public final class SizingType
    extends Object

    Specifies how watermark size should be calculated.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int Absolute
      Watermark should be sized to an exact Watermark.Width and Watermark.Height
      static int Auto
      Watermark should be sized automatically according to its content.
      static int ScaleToParentArea
      Watermark should be scaled relative to parent area using specified Watermark.ScaleFactor
      static int ScaleToParentDimensions
      Watermark should be scaled relative to parent dimensions using specified Watermark.ScaleFactor.
    • Field Detail

      • Auto

        public static final int Auto

        Watermark should be sized automatically according to its content.

        See Also:
        Constant Field Values
      • Absolute

        public static final int Absolute

        Watermark should be sized to an exact Watermark.Width and Watermark.Height

        See Also:
        Constant Field Values
      • ScaleToParentDimensions

        public static final int ScaleToParentDimensions

        Watermark should be scaled relative to parent dimensions using specified Watermark.ScaleFactor.

        See Also:
        Constant Field Values
      • ScaleToParentArea

        public static final int ScaleToParentArea

        Watermark should be scaled relative to parent area using specified Watermark.ScaleFactor

        See Also:
        Constant Field Values
    • Method Detail

      • toString

        public static final String toString(int value)

        Returns a string representation of the SizingType value.

        Parameters:
        value - The value to convert.
        Returns:
        The string representation of the SizingType value.
      • parse

        public static final int parse(String value)

        Parses a string to a SizingType enumeration value.

        Parameters:
        value - The string to parse.
        Returns:
        The SizingType enumeration value.