com.jme3.texture
Enum Image.Format

java.lang.Object
  extended by java.lang.Enum<Image.Format>
      extended by com.jme3.texture.Image.Format
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Image.Format>
Enclosing class:
Image

public static enum Image.Format
extends java.lang.Enum<Image.Format>


Enum Constant Summary
ABGR8
          8-bit alpha, blue, green, and red.
Alpha16
          16-bit alpha
Alpha8
          8-bit alpha
ARGB4444
          4-bit alpha, red, green, and blue.
BGR8
          8-bit blue, green, and red.
Depth
          Arbitrary depth format.
Depth16
          16-bit depth.
Depth24
          24-bit depth.
Depth24Stencil8
          24-bit depth with 8-bit stencil.
Depth32
          32-bit depth.
Depth32F
          single-precision floating point depth.
DXT1
          S3TC compression DXT1.
DXT1A
          S3TC compression DXT1 with 1-bit alpha.
DXT3
          S3TC compression DXT3 with 4-bit alpha.
DXT5
          S3TC compression DXT5 with interpolated 8-bit alpha.
Intensity16
           
Intensity8
           
LATC
          Luminance-Alpha Texture Compression.
LTC
          Luminance/grayscale texture compression.
Luminance16
          16-bit grayscale/luminance.
Luminance16Alpha16
          16-bit luminance/grayscale and 16-bit alpha.
Luminance16F
          half-precision floating-point grayscale/luminance.
Luminance16FAlpha16F
          half-precision floating-point grayscale/luminance and alpha.
Luminance32F
          single-precision floating-point grayscale/luminance.
Luminance8
          8-bit grayscale/luminance.
Luminance8Alpha8
          8-bit luminance/grayscale and 8-bit alpha.
RGB10
          10-bit red, green, and blue.
RGB111110F
          unsigned floating-point red, green and blue that uses 32 bits.
RGB16
          16-bit red, green, and blue.
RGB16F
          half-precision floating point red, green, and blue.
RGB16F_to_RGB111110F
          Texture data is stored as RGB16F in system memory, but will be converted to RGB111110F when sent to the video hardware.
RGB16F_to_RGB9E5
          Texture data is stored as RGB16F in system memory, but will be converted to RGB9E5 when sent to the video hardware.
RGB32F
          single-precision floating point red, green, and blue.
RGB565
          5-bit red, 6-bit green, and 5-bit blue.
RGB5A1
          5-bit red, green, and blue with 1-bit alpha.
RGB8
          8-bit red, green, and blue.
RGB9E5
          9-bit red, green and blue with 5-bit exponent.
RGBA16
          16-bit red, green, blue and alpha
RGBA16F
          half-precision floating point red, green, blue, and alpha.
RGBA32F
          single-precision floating point red, green, blue and alpha.
RGBA8
          8-bit red, green, blue, and alpha.
 
Method Summary
 int getBitsPerPixel()
           
 boolean isCompressed()
           
 boolean isDepthFormat()
           
 boolean isFloatingPont()
           
static Image.Format valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Image.Format[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Alpha8

public static final Image.Format Alpha8
8-bit alpha


Alpha16

public static final Image.Format Alpha16
16-bit alpha


Luminance8

public static final Image.Format Luminance8
8-bit grayscale/luminance.


Luminance16

public static final Image.Format Luminance16
16-bit grayscale/luminance.


Luminance16F

public static final Image.Format Luminance16F
half-precision floating-point grayscale/luminance.


Luminance32F

public static final Image.Format Luminance32F
single-precision floating-point grayscale/luminance.


Luminance8Alpha8

public static final Image.Format Luminance8Alpha8
8-bit luminance/grayscale and 8-bit alpha.


Luminance16Alpha16

public static final Image.Format Luminance16Alpha16
16-bit luminance/grayscale and 16-bit alpha.


Luminance16FAlpha16F

public static final Image.Format Luminance16FAlpha16F
half-precision floating-point grayscale/luminance and alpha.


Intensity8

public static final Image.Format Intensity8

Intensity16

public static final Image.Format Intensity16

BGR8

public static final Image.Format BGR8
8-bit blue, green, and red.


RGB8

public static final Image.Format RGB8
8-bit red, green, and blue.


RGB10

public static final Image.Format RGB10
10-bit red, green, and blue.


RGB16

public static final Image.Format RGB16
16-bit red, green, and blue.


RGB565

public static final Image.Format RGB565
5-bit red, 6-bit green, and 5-bit blue.


ARGB4444

public static final Image.Format ARGB4444
4-bit alpha, red, green, and blue. Used on Android only.


RGB5A1

public static final Image.Format RGB5A1
5-bit red, green, and blue with 1-bit alpha.


RGBA8

public static final Image.Format RGBA8
8-bit red, green, blue, and alpha.


ABGR8

public static final Image.Format ABGR8
8-bit alpha, blue, green, and red.


RGBA16

public static final Image.Format RGBA16
16-bit red, green, blue and alpha


DXT1

public static final Image.Format DXT1
S3TC compression DXT1. Called BC1 in DirectX10.


DXT1A

public static final Image.Format DXT1A
S3TC compression DXT1 with 1-bit alpha.


DXT3

public static final Image.Format DXT3
S3TC compression DXT3 with 4-bit alpha. Called BC2 in DirectX10.


DXT5

public static final Image.Format DXT5
S3TC compression DXT5 with interpolated 8-bit alpha. Called BC3 in DirectX10.


LATC

public static final Image.Format LATC
Luminance-Alpha Texture Compression. Called BC5 in DirectX10.


Depth

public static final Image.Format Depth
Arbitrary depth format. The precision is chosen by the video hardware.


Depth16

public static final Image.Format Depth16
16-bit depth.


Depth24

public static final Image.Format Depth24
24-bit depth.


Depth32

public static final Image.Format Depth32
32-bit depth.


Depth32F

public static final Image.Format Depth32F
single-precision floating point depth.


RGB16F_to_RGB111110F

public static final Image.Format RGB16F_to_RGB111110F
Texture data is stored as RGB16F in system memory, but will be converted to RGB111110F when sent to the video hardware.


RGB111110F

public static final Image.Format RGB111110F
unsigned floating-point red, green and blue that uses 32 bits.


RGB16F_to_RGB9E5

public static final Image.Format RGB16F_to_RGB9E5
Texture data is stored as RGB16F in system memory, but will be converted to RGB9E5 when sent to the video hardware.


RGB9E5

public static final Image.Format RGB9E5
9-bit red, green and blue with 5-bit exponent.


RGB16F

public static final Image.Format RGB16F
half-precision floating point red, green, and blue.


RGBA16F

public static final Image.Format RGBA16F
half-precision floating point red, green, blue, and alpha.


RGB32F

public static final Image.Format RGB32F
single-precision floating point red, green, and blue.


RGBA32F

public static final Image.Format RGBA32F
single-precision floating point red, green, blue and alpha.


LTC

public static final Image.Format LTC
Luminance/grayscale texture compression. Called BC4 in DirectX10.


Depth24Stencil8

public static final Image.Format Depth24Stencil8
24-bit depth with 8-bit stencil. Check the cap Caps.PackedDepthStencilBuffer.

Method Detail

values

public static Image.Format[] 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 (Image.Format c : Image.Format.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Image.Format valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getBitsPerPixel

public int getBitsPerPixel()
Returns:
bits per pixel.

isDepthFormat

public boolean isDepthFormat()
Returns:
True if this format is a depth format, false otherwise.

isCompressed

public boolean isCompressed()
Returns:
True if this is a compressed image format, false if uncompressed.

isFloatingPont

public boolean isFloatingPont()
Returns:
True if this image format is in floating point, false if it is an integer format.