Enum ColorDepth

    • Enum Constant Detail

      • BPP_8_INDEXED

        public static final ColorDepth BPP_8_INDEXED
        8 bits per pixel indexed color
      • BPP_8_TRUE

        public static final ColorDepth BPP_8_TRUE
        8 bits per pixel true color
      • BPP_16_TRUE

        public static final ColorDepth BPP_16_TRUE
        16 bits per pixel true color
      • BPP_24_TRUE

        public static final ColorDepth BPP_24_TRUE
        24 bits per pixel true color
    • Method Detail

      • values

        public static ColorDepth[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ColorDepth c : ColorDepth.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ColorDepth 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
      • getBitsPerPixel

        public int getBitsPerPixel()
      • getDepth

        public int getDepth()
      • isTrueColor

        public boolean isTrueColor()
      • getRedMax

        public int getRedMax()
      • getBlueMax

        public int getBlueMax()
      • getGreenMax

        public int getGreenMax()
      • getRedShift

        public int getRedShift()
      • getBlueShift

        public int getBlueShift()
      • getGreenShift

        public int getGreenShift()