Enum Class ImageFormat.Transparency

java.lang.Object
java.lang.Enum<ImageFormat.Transparency>
dev.avelar.mapnik.ImageFormat.Transparency
All Implemented Interfaces:
Serializable, Comparable<ImageFormat.Transparency>, Constable
Enclosing class:
ImageFormat

public static enum ImageFormat.Transparency extends Enum<ImageFormat.Transparency>
What PNG8 does about the alpha channel.
  • Enum Constant Details

    • NONE

      public static final ImageFormat.Transparency NONE
      No transparency: alpha is dropped.
    • BINARY

      public static final ImageFormat.Transparency BINARY
      Pixels are either fully transparent or opaque: smaller, and works where partial transparency does not.
    • ALPHA_LEVELS

      public static final ImageFormat.Transparency ALPHA_LEVELS
      Keep several levels of alpha in the palette (Mapnik's default).
  • Method Details

    • values

      public static ImageFormat.Transparency[] 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 ImageFormat.Transparency 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