Enum Texture.Filter

java.lang.Object
java.lang.Enum<Texture.Filter>
org.scilab.forge.scirenderer.texture.Texture.Filter
All Implemented Interfaces:
Serializable, Comparable<Texture.Filter>, java.lang.constant.Constable
Enclosing interface:
Texture

public static enum Texture.Filter extends Enum<Texture.Filter>
Enumeration of filtering possibility.
  • Enum Constant Details

    • NEAREST

      public static final Texture.Filter NEAREST
      Use the value of the texture element that is nearest (in Manhattan distance) to the center of the pixel being textured.
    • LINEAR

      public static final Texture.Filter LINEAR
      Use the weighted average of the four texture elements that are closest to the center of the pixel being textured.
  • Method Details

    • values

      public static Texture.Filter[] 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 Texture.Filter 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