Enum Class PixelDataType

java.lang.Object
java.lang.Enum<PixelDataType>
com.ardor3d.image.PixelDataType
All Implemented Interfaces:
Serializable, Comparable<PixelDataType>, Constable

public enum PixelDataType extends Enum<PixelDataType>
  • Enum Constant Details

    • UnsignedByte

      public static final PixelDataType UnsignedByte
    • Byte

      public static final PixelDataType Byte
    • UnsignedShort

      public static final PixelDataType UnsignedShort
    • Short

      public static final PixelDataType Short
    • UnsignedInt

      public static final PixelDataType UnsignedInt
    • Int

      public static final PixelDataType Int
    • Float

      public static final PixelDataType Float
    • HalfFloat

      public static final PixelDataType HalfFloat
    • UnsignedByte_3_3_2

      public static final PixelDataType UnsignedByte_3_3_2
    • UnsignedByte_2_3_3_Rev

      public static final PixelDataType UnsignedByte_2_3_3_Rev
    • UnsignedShort_5_6_5

      public static final PixelDataType UnsignedShort_5_6_5
    • UnsignedShort_5_6_5_Rev

      public static final PixelDataType UnsignedShort_5_6_5_Rev
    • UnsignedShort_4_4_4_4

      public static final PixelDataType UnsignedShort_4_4_4_4
    • UnsignedShort_4_4_4_4_Rev

      public static final PixelDataType UnsignedShort_4_4_4_4_Rev
    • UnsignedShort_5_5_5_1

      public static final PixelDataType UnsignedShort_5_5_5_1
    • UnsignedShort_1_5_5_5_Rev

      public static final PixelDataType UnsignedShort_1_5_5_5_Rev
    • UnsignedInt_8_8_8_8

      public static final PixelDataType UnsignedInt_8_8_8_8
    • UnsignedInt_8_8_8_8_Rev

      public static final PixelDataType UnsignedInt_8_8_8_8_Rev
    • UnsignedInt_10_10_10_2

      public static final PixelDataType UnsignedInt_10_10_10_2
    • UnsignedInt_2_10_10_10_Rev

      public static final PixelDataType UnsignedInt_2_10_10_10_Rev
  • Method Details

    • values

      public static PixelDataType[] 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 PixelDataType 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
    • getBytesPerPixel

      public int getBytesPerPixel(int components)