com.flagstone.transform.image
Enum ImageFormat

java.lang.Object
  extended by java.lang.Enum<ImageFormat>
      extended by com.flagstone.transform.image.ImageFormat
All Implemented Interfaces:
Serializable, Comparable<ImageFormat>

public enum ImageFormat
extends Enum<ImageFormat>

ImageFormat is used to represent the different formats for lossless images.


Enum Constant Summary
IDX8
          The opaque image contains a colour table with 256 entries.
IDXA
          The transparent image contains a colour table with 256 entries.
RGB5
          The opaque image is a true colour image, with the values for the red, green and blue colour channels represented by a 5-bit number.
RGB8
          The opaque image is a true colour image, with the values for the red, green and blue colour channels represented by a 8-bit number.
RGBA
          The transparent image is a true colour image, with the values for the red, green, blue and alpha channels represented by a 8-bit number.
 
Method Summary
static ImageFormat valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ImageFormat[] 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

IDX8

public static final ImageFormat IDX8
The opaque image contains a colour table with 256 entries. Each entry contains values for the red, green and blue colour channels.


IDXA

public static final ImageFormat IDXA
The transparent image contains a colour table with 256 entries. Each entry contains values for the red, green, blue and alpha channels.


RGB5

public static final ImageFormat RGB5
The opaque image is a true colour image, with the values for the red, green and blue colour channels represented by a 5-bit number.


RGB8

public static final ImageFormat RGB8
The opaque image is a true colour image, with the values for the red, green and blue colour channels represented by a 8-bit number.


RGBA

public static final ImageFormat RGBA
The transparent image is a true colour image, with the values for the red, green, blue and alpha channels represented by a 8-bit number.

Method Detail

values

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

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

valueOf

public static ImageFormat 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


Copyright © 2002-2010 Flagstone Software Ltd.. All Rights Reserved.