Class ColorFormat

java.lang.Object
com.massifmaps.graphics.ColorFormat

public final class ColorFormat extends Object
Possible image formats.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    The accepted values of this constant namespace.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    An image format that describes images with four channels, one for each color: blue, green and red
    and one for alpha.
    static final int
    An image format that describes images with a single color channel.
    static final int
    An image format that describes images with two channels, one for color and the other
    for alpha.
    static final int
    An image format that describes images with three channels, one for each color: red, green and blue.
    static final int
    An image format that describes images with three channels, one for each color: red, green, and blue.
    Red and blue colors are each packed into 5 bits, green into 6 bits.
    static final int
    An image format that describes images with four channels, one for each color: red, green and blue
    and one for alpha.
    static final int
    An image format that describes images with four channels, one for each color: red, green, and blue
    and one for alpha.
    static final int
    Options for identifiny unsupported image formats.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • COLOR_FORMAT_UNSUPPORTED

      public static final int COLOR_FORMAT_UNSUPPORTED
      Options for identifiny unsupported image formats.
      See Also:
    • COLOR_FORMAT_GRAYSCALE

      public static final int COLOR_FORMAT_GRAYSCALE
      An image format that describes images with a single color channel.
      See Also:
    • COLOR_FORMAT_GRAYSCALE_ALPHA

      public static final int COLOR_FORMAT_GRAYSCALE_ALPHA
      An image format that describes images with two channels, one for color and the other
      for alpha.
      See Also:
    • COLOR_FORMAT_RGB

      public static final int COLOR_FORMAT_RGB
      An image format that describes images with three channels, one for each color: red, green and blue.
      See Also:
    • COLOR_FORMAT_RGBA

      public static final int COLOR_FORMAT_RGBA
      An image format that describes images with four channels, one for each color: red, green and blue
      and one for alpha.
      See Also:
    • COLOR_FORMAT_BGRA

      public static final int COLOR_FORMAT_BGRA
      An image format that describes images with four channels, one for each color: blue, green and red
      and one for alpha. This color format will be converted to RGBA.
      See Also:
    • COLOR_FORMAT_RGBA_4444

      public static final int COLOR_FORMAT_RGBA_4444
      An image format that describes images with four channels, one for each color: red, green, and blue
      and one for alpha. Each color is only four bits. This color format will be converted to RGBA.
      See Also:
    • COLOR_FORMAT_RGB_565

      public static final int COLOR_FORMAT_RGB_565
      An image format that describes images with three channels, one for each color: red, green, and blue.
      Red and blue colors are each packed into 5 bits, green into 6 bits. This color format will be converted to RGB.
      See Also:
  • Constructor Details

    • ColorFormat

      public ColorFormat()