API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.imageio. ImageTypeSpecifier View Source
Author(s)
Since
Version
0.5
Serial
Hierarchy
 Object
      ImageTypeSpecifier
Implements
Subclasses
Description
public class ImageTypeSpecifier
A class that allows the format of an image (in particular, its SampleModel and ColorModel) to be specified in a convenient manner.
See also:   
Constructors
private ImageTypeSpecifier ()
A constructor to be used by inner subclasses only.
public ImageTypeSpecifier (ColorModel colorModel, SampleModel sampleModel)
  Constructs an ImageTypeSpecifier directly from a ColorModel and a SampleModel.
public ImageTypeSpecifier (RenderedImage image)
  Constructs an ImageTypeSpecifier from a RenderedImage.
Methods
Hide/Show inherited methods
publicstatic ImageTypeSpecifier createBanded (ColorSpace colorSpace, int[] bankIndices, int[] bandOffsets, int dataType, boolean hasAlpha, boolean isAlphaPremultiplied)
  Returns a specifier for a banded image format that will use a ComponentColorModel and a BandedSampleModel to store each channel in a separate array.
public BufferedImage createBufferedImage (int width, int height)
  Creates a BufferedImage with a given width and height according to the specification embodied in this object.
pack-privatestatic ColorModel createComponentCM (ColorSpace colorSpace, int numBands, int dataType, boolean hasAlpha, boolean isAlphaPremultiplied)
publicstatic ImageTypeSpecifier createFromBufferedImageType (int bufferedImageType)
  Returns an ImageTypeSpecifier that encodes one of the standard BufferedImage types (other than TYPE_CUSTOM).
publicstatic ImageTypeSpecifier createFromRenderedImage (RenderedImage image)
  Returns an ImageTypeSpecifier that encodes the layout of a RenderedImage (which may be a BufferedImage).
publicstatic ImageTypeSpecifier createGrayscale (int bits, int dataType, boolean isSigned)
  Returns a specifier for a grayscale image format that will pack pixels of the given bit depth into array elements of the specified data type.
publicstatic ImageTypeSpecifier createGrayscale (int bits, int dataType, boolean isSigned, boolean isAlphaPremultiplied)
  Returns a specifier for a grayscale plus alpha image format that will pack pixels of the given bit depth into array elements of the specified data type.
publicstatic ImageTypeSpecifier createIndexed (byte[] redLUT, byte[] greenLUT, byte[] blueLUT, byte[] alphaLUT, int bits, int dataType)
  Returns a specifier for an indexed-color image format that will pack index values of the given bit depth into array elements of the specified data type.
publicstatic ImageTypeSpecifier createInterleaved (ColorSpace colorSpace, int[] bandOffsets, int dataType, boolean hasAlpha, boolean isAlphaPremultiplied)
  Returns a specifier for an interleaved image format that will use a ComponentColorModel and a PixelInterleavedSampleModel to store each pixel component in a separate byte, short, or int.
publicstatic ImageTypeSpecifier createPacked (ColorSpace colorSpace, int redMask, int greenMask, int blueMask, int alphaMask, int transferType, boolean isAlphaPremultiplied)
  Returns a specifier for a packed image format that will use a DirectColorModel and a packed SampleModel to store each pixel packed into in a single byte, short, or int.
public boolean equals (Object o)
  Returns true if the given Object is an ImageTypeSpecifier and has a SampleModel and ColorModel that are equal to those of this object.
public int getBitsPerBand (int band)
  Return the number of bits used to represent samples of the given band.
public int getBufferedImageType ()
  Returns an int containing one of the enumerated constant values describing image formats from BufferedImage.
public ColorModel getColorModel ()
  Returns the ColorModel specified by this object.
public int getNumBands ()
  Return the number of bands specified by this object.
public int getNumComponents ()
  Return the number of color components specified by this object.
public SampleModel getSampleModel ()
  Returns a SampleModel based on the settings encapsulated within this object.
public SampleModel getSampleModel (int width, int height)
  Returns a SampleModel based on the settings encapsulated within this object.
public int hashCode ()
  Returns the hash code for this ImageTypeSpecifier.
Fields
Hide/Show inherited fields
protected ColorModel colorModel
The ColorModel to be used as a prototype.
protected SampleModel sampleModel
A SampleModel to be used as a prototype.
Nested Classes
  ImageTypeSpecifier.Packed
  ImageTypeSpecifier.Interleaved
  ImageTypeSpecifier.Banded
  ImageTypeSpecifier.Grayscale
  ImageTypeSpecifier.Indexed
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar