Enum Class Watermark.WatermarkPosition

java.lang.Object
java.lang.Enum<Watermark.WatermarkPosition>
com.idrsolutions.image.process.Watermark.WatermarkPosition
All Implemented Interfaces:
Serializable, Comparable<Watermark.WatermarkPosition>, Constable
Enclosing class:
Watermark

public static enum Watermark.WatermarkPosition extends Enum<Watermark.WatermarkPosition>
Where the watermark is placed on the image.
  • Enum Constant Details

    • Center

      public static final Watermark.WatermarkPosition Center
      Centre the watermark on the image.
    • FitToImage

      public static final Watermark.WatermarkPosition FitToImage
      Scale the watermark to fill the image width (text) or the whole image (shapes and images).
    • USE_SHAPE_COORDINATES

      public static final Watermark.WatermarkPosition USE_SHAPE_COORDINATES
      Place a text or shape watermark using the rectangle or shape it was created with. Text with no rectangle, and image watermarks, are placed at the top left of the image.
  • Method Details

    • values

      public static Watermark.WatermarkPosition[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Watermark.WatermarkPosition valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null