Enum MaskType

java.lang.Object
java.lang.Enum<MaskType>
com.github.weisj.jsvg.attributes.MaskType
All Implemented Interfaces:
Serializable, Comparable<MaskType>, java.lang.constant.Constable

public enum MaskType extends Enum<MaskType>
Specifies whether the mask is treated as a luminance mask or as an alpha mask.
See Also:
  • Enum Constant Details

    • Luminance

      public static final MaskType Luminance
      The luminance values of the mask content determine the mask. The effective mask value for a pixel is computed as luminance(color) * alpha.
      See Also:
    • Alpha

      public static final MaskType Alpha
      The alpha values of the mask content determine the mask. The effective mask value for a pixel equals its alpha value.
      See Also:
  • Method Details

    • values

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

      public static MaskType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • bufferSurface

      @NotNull public BlittableImage.BufferSurfaceSupplier bufferSurface()