SampleModel and ColorModel) to be
specified in a convenient manner.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static ImageTypeSpecifier[] | BISpecifier
Cached specifiers for all of the standard
|
| protected ColorModel | colorModel
The |
| protected SampleModel | sampleModel
A |
| private static ColorSpace |
| Access | Constructor and Description |
|---|---|
| private | |
| public | ImageTypeSpecifier(ColorModel
a colorModel, SampleModel ColorModel.a sampleModel)SampleModel.Constructs an |
| public | ImageTypeSpecifier(RenderedImage
a image)RenderedImage.Constructs an |
| Modifier and Type | Method and Description |
|---|---|
| public static ImageTypeSpecifier | Returns: anImageTypeSpecifier with the desired
characteristics.the desired colorSpace, int[] ColorSpace.an array of bankIndices, int[] ints indicating the
bank in which each band will be stored.an array of bandOffsets, int ints indicating the
starting offset of each band within its bank.the desired data type, as one of the enumerations
from the dataType, boolean DataBuffer class.true if an alpha channel is desired.true if the color channels
will be premultipled by the alpha channel.Returns a specifier for a banded image format that will use a
|
| public BufferedImage | Returns: a newBufferedImagethe desired width of the returned
width, int BufferedImage.the desired height of the returned
height)BufferedImage.Creates a |
| pack-priv static ColorModel | createComponentCM(ColorSpace colorSpace, int numBands, int dataType, boolean hasAlpha, boolean isAlphaPremultiplied)
|
| public static ImageTypeSpecifier | Returns: anImageTypeSpecifier with the desired
characteristics.an int representing one of the standard
bufferedImageType)BufferedImage types.Returns an |
| public static ImageTypeSpecifier | Returns: anImageTypeSpecifier with the desired
characteristics.a image)RenderedImage.Returns an |
| public static ImageTypeSpecifier | Returns: anImageTypeSpecifier with the desired
characteristics.the number of bits per gray value (1, 2, 4, 8, or 16). bits, int the desired data type, as one of the enumerations
from the dataType, boolean DataBuffer class.true if negative values are to
be represented.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. |
| public static ImageTypeSpecifier | Returns: anImageTypeSpecifier with the desired
characteristics.the number of bits per gray value (1, 2, 4, 8, or 16). bits, int the desired data type, as one of the enumerations
from the dataType, boolean DataBuffer class.true if negative values are to
be represented.true if the luminance channel
will be premultipled by the alpha channel.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. |
| public static ImageTypeSpecifier | Returns: anImageTypeSpecifier with the desired
characteristics.an array of redLUT, byte[] bytes containing
the red values for each index.an array of greenLUT, byte[] bytes containing * the
green values for each index.an array of blueLUT, byte[] bytes containing the
blue values for each index.an array of alphaLUT, int bytes containing the
alpha values for each index, or null to create a
fully opaque LUT.the number of bits in each index. bits, int the desired output type, as one of the enumerations
from the dataType)DataBuffer class.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. |
| public static ImageTypeSpecifier | Returns: anImageTypeSpecifier with the desired
characteristics.the desired colorSpace, int[] ColorSpace.an array of bandOffsets, int ints indicating the
offsets for each band.the desired data type, as one of the enumerations
from the dataType, boolean DataBuffer class.true if an alpha channel is desired.true if the color channels
will be premultipled by the alpha channel.Returns a specifier for an interleaved image format that will
use a |
| public static ImageTypeSpecifier | Returns: anImageTypeSpecifier with the desired
characteristics.the desired colorSpace, int ColorSpace.a contiguous mask indicated the position of the
red channel. redMask, int a contiguous mask indicated the position of the
green channel. greenMask, int a contiguous mask indicated the position of the
blue channel. blueMask, int a contiguous mask indicated the position of the
alpha channel. alphaMask, int the desired transferType, boolean SampleModel transfer type.true if the color channels
will be premultipled by the alpha channel.Returns a specifier for a packed image format that will use a
|
| private static ImageTypeSpecifier | |
| public boolean | Returns: true if the given object is an equivalent
ImageTypeSpecifier.the o)Object to be compared for equality.Overrides java. Returns |
| public int | Returns: an int specifying a number of bits.the index of the band to be queried, as an
int. band)Return the number of bits used to represent samples of the given band. |
| public int | Returns: anint representing a
BufferedImage type.Returns an int containing one of the enumerated constant values
describing image formats from |
| public ColorModel | |
| public int | Returns: the number of bands in the image.Return the number of bands specified by this object. |
| public int | Returns: the number of components in the image.Return the number of color components specified by this object. |
| public SampleModel | Returns: aSampleModel with arbitrary dimensions.Returns a |
| public SampleModel | Returns: aSampleModel with the given dimensions.the desired width of the returned width, int SampleModel.the desired height of the returned
height)SampleModel.Returns a |
| private static ImageTypeSpecifier | |
| public int | Returns: a hash code for this ImageTypeSpecifierOverrides java. Returns the hash code for this ImageTypeSpecifier. |
| BISpecifier | back to summary |
|---|---|
| private static ImageTypeSpecifier[] BISpecifier Cached specifiers for all of the standard
| |
| colorModel | back to summary |
|---|---|
| protected ColorModel colorModel The | |
| sampleModel | back to summary |
|---|---|
| protected SampleModel sampleModel A | |
| sRGB | back to summary |
|---|---|
| private static ColorSpace sRGB | |
| ImageTypeSpecifier | back to summary |
|---|---|
| private ImageTypeSpecifier() A constructor to be used by inner subclasses only. | |
| ImageTypeSpecifier | back to summary |
|---|---|
| public ImageTypeSpecifier(ColorModel colorModel, SampleModel sampleModel) Constructs an
| |
| ImageTypeSpecifier | back to summary |
|---|---|
| public ImageTypeSpecifier(RenderedImage image) Constructs an
| |
| createBanded | back to summary |
|---|---|
| public static 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
| |
| createBufferedImage | back to summary |
|---|---|
| public BufferedImage createBufferedImage(int width, int height) Creates a
| |
| createComponentCM | back to summary |
|---|---|
| pack-priv static ColorModel createComponentCM(ColorSpace colorSpace, int numBands, int dataType, boolean hasAlpha, boolean isAlphaPremultiplied) | |
| createFromRenderedImage | back to summary |
|---|---|
| public static ImageTypeSpecifier createFromRenderedImage(RenderedImage image) Returns an
| |
| createGrayscale | back to summary |
|---|---|
| public static 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.
| |
| createGrayscale | back to summary |
|---|---|
| public static 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.
| |
| createIndexed | back to summary |
|---|---|
| public static 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.
| |
| createInterleaved | back to summary |
|---|---|
| public static ImageTypeSpecifier createInterleaved(ColorSpace colorSpace, int[] bandOffsets, int dataType, boolean hasAlpha, boolean isAlphaPremultiplied) Returns a specifier for an interleaved image format that will
use a
| |
| createPacked | back to summary |
|---|---|
| public static 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
| |
| createSpecifier | back to summary |
|---|---|
| private static ImageTypeSpecifier createSpecifier(int type) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Returns
| |
| getBitsPerBand | back to summary |
|---|---|
| public int getBitsPerBand(int band) Return the number of bits used to represent samples of the given band.
| |
| getBufferedImageType | back to summary |
|---|---|
| public int getBufferedImageType() Returns an int containing one of the enumerated constant values
describing image formats from
| |
| getColorModel | back to summary |
|---|---|
| public ColorModel getColorModel() Returns the
| |
| getNumBands | back to summary |
|---|---|
| public int getNumBands() Return the number of bands
specified by this object. This is the same value as returned by
| |
| getNumComponents | back to summary |
|---|---|
| public int getNumComponents() Return the number of color components
specified by this object. This is the same value as returned by
| |
| getSampleModel | back to summary |
|---|---|
| public SampleModel getSampleModel() Returns a
| |
| getSampleModel | back to summary |
|---|---|
| public SampleModel getSampleModel(int width, int height) Returns a
| |
| getSpecifier | back to summary |
|---|---|
| private static ImageTypeSpecifier getSpecifier(int type) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns the hash code for this ImageTypeSpecifier.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int[] | |
| pack-priv int[] | |
| pack-priv ColorSpace | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| public | Banded(ColorSpace colorSpace, int[] bankIndices, int[] bandOffsets, int dataType, boolean hasAlpha, boolean isAlphaPremultiplied)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object o)
Overrides javax. Returns |
| public int | hashCode()
Overrides javax. Returns the hash code for this ImageTypeSpecifier. |
| bandOffsets | back to summary |
|---|---|
| pack-priv int[] bandOffsets | |
| bankIndices | back to summary |
|---|---|
| pack-priv int[] bankIndices | |
| colorSpace | back to summary |
|---|---|
| pack-priv ColorSpace colorSpace | |
| dataType | back to summary |
|---|---|
| pack-priv int dataType | |
| hasAlpha | back to summary |
|---|---|
| pack-priv boolean hasAlpha | |
| isAlphaPremultiplied | back to summary |
|---|---|
| pack-priv boolean isAlphaPremultiplied | |
| Banded | back to summary |
|---|---|
| public Banded(ColorSpace colorSpace, int[] bankIndices, int[] bandOffsets, int dataType, boolean hasAlpha, boolean isAlphaPremultiplied) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides javax. Doc from javax. Returns | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides javax. Doc from javax. Returns the hash code for this ImageTypeSpecifier. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| public |
| bits | back to summary |
|---|---|
| pack-priv int bits | |
| dataType | back to summary |
|---|---|
| pack-priv int dataType | |
| hasAlpha | back to summary |
|---|---|
| pack-priv boolean hasAlpha | |
| isAlphaPremultiplied | back to summary |
|---|---|
| pack-priv boolean isAlphaPremultiplied | |
| isSigned | back to summary |
|---|---|
| pack-priv boolean isSigned | |
| Grayscale | back to summary |
|---|---|
| public Grayscale(int bits, int dataType, boolean isSigned, boolean hasAlpha, boolean isAlphaPremultiplied) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv byte[] | |
| pack-priv int | |
| pack-priv byte[] | |
| pack-priv int | |
| pack-priv byte[] | |
| pack-priv byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| alphaLUT | back to summary |
|---|---|
| pack-priv byte[] alphaLUT | |
| bits | back to summary |
|---|---|
| pack-priv int bits | |
| blueLUT | back to summary |
|---|---|
| pack-priv byte[] blueLUT | |
| dataType | back to summary |
|---|---|
| pack-priv int dataType | |
| greenLUT | back to summary |
|---|---|
| pack-priv byte[] greenLUT | |
| redLUT | back to summary |
|---|---|
| pack-priv byte[] redLUT | |
| Indexed | back to summary |
|---|---|
| public Indexed(byte[] redLUT, byte[] greenLUT, byte[] blueLUT, byte[] alphaLUT, int bits, int dataType) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int[] | |
| pack-priv ColorSpace | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| public | Interleaved(ColorSpace colorSpace, int[] bandOffsets, int dataType, boolean hasAlpha, boolean isAlphaPremultiplied)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object o)
Overrides javax. Returns |
| public int | hashCode()
Overrides javax. Returns the hash code for this ImageTypeSpecifier. |
| bandOffsets | back to summary |
|---|---|
| pack-priv int[] bandOffsets | |
| colorSpace | back to summary |
|---|---|
| pack-priv ColorSpace colorSpace | |
| dataType | back to summary |
|---|---|
| pack-priv int dataType | |
| hasAlpha | back to summary |
|---|---|
| pack-priv boolean hasAlpha | |
| isAlphaPremultiplied | back to summary |
|---|---|
| pack-priv boolean isAlphaPremultiplied | |
| Interleaved | back to summary |
|---|---|
| public Interleaved(ColorSpace colorSpace, int[] bandOffsets, int dataType, boolean hasAlpha, boolean isAlphaPremultiplied) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides javax. Doc from javax. Returns | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides javax. Doc from javax. Returns the hash code for this ImageTypeSpecifier. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int | |
| pack-priv ColorSpace | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public | Packed(ColorSpace colorSpace, int redMask, int greenMask, int blueMask, int alphaMask, int transferType, boolean isAlphaPremultiplied)
|
| alphaMask | back to summary |
|---|---|
| pack-priv int alphaMask | |
| blueMask | back to summary |
|---|---|
| pack-priv int blueMask | |
| colorSpace | back to summary |
|---|---|
| pack-priv ColorSpace colorSpace | |
| greenMask | back to summary |
|---|---|
| pack-priv int greenMask | |
| isAlphaPremultiplied | back to summary |
|---|---|
| pack-priv boolean isAlphaPremultiplied | |
| redMask | back to summary |
|---|---|
| pack-priv int redMask | |
| transferType | back to summary |
|---|---|
| pack-priv int transferType | |
| Packed | back to summary |
|---|---|
| public Packed(ColorSpace colorSpace, int redMask, int greenMask, int blueMask, int alphaMask, int transferType, boolean isAlphaPremultiplied) | |