Methods Summary |
---|
public static javax.imageio.ImageTypeSpecifier | createBanded(java.awt.color.ColorSpace colorSpace, int[] bankIndices, int[] bandOffsets, int dataType, boolean hasAlpha, boolean isAlphaPremultiplied)Creates a ImageTypeSpecifier for a image with a BandedSampleModel and a
ComponentColorModel.
throw new UnsupportedOperationException("Not supported yet");
|
public java.awt.image.BufferedImage | createBufferedImage(int width, int height)Creates the BufferedImage with the specified width and height and the
ColorMadel and SampleModel which are specified by this
ImageTypeSpecifier.
throw new UnsupportedOperationException("Not supported yet");
|
public static javax.imageio.ImageTypeSpecifier | createFromBufferedImageType(int bufferedImageType)Creates the ImageTypeSpecifier from the specified buffered image type.
throw new UnsupportedOperationException("Not supported yet");
|
public static javax.imageio.ImageTypeSpecifier | createFromRenderedImage(java.awt.image.RenderedImage image)Creates the ImageTypeSpecifier from the specified RenderedImage.
if (null == image) {
throw new IllegalArgumentException("image should not be NULL");
}
return new ImageTypeSpecifier(image);
|
public static javax.imageio.ImageTypeSpecifier | createGrayscale(int bits, int dataType, boolean isSigned)Creates a ImageTypeSpecifier for a grayscale image.
throw new UnsupportedOperationException("Not supported yet");
|
public static javax.imageio.ImageTypeSpecifier | createGrayscale(int bits, int dataType, boolean isSigned, boolean isAlphaPremultiplied)Creates a ImageTypeSpecifier for a grayscale image.
throw new UnsupportedOperationException("Not supported yet");
|
public static javax.imageio.ImageTypeSpecifier | createIndexed(byte[] redLUT, byte[] greenLUT, byte[] blueLUT, byte[] alphaLUT, int bits, int dataType)Creates a ImageTypeSpecifier with the indexed image format.
throw new UnsupportedOperationException("Not supported yet");
|
public static javax.imageio.ImageTypeSpecifier | createInterleaved(java.awt.color.ColorSpace colorSpace, int[] bandOffsets, int dataType, boolean hasAlpha, boolean isAlphaPremultiplied)Creates an ImageTypeSpecifier with specified ComponentColorModel and a
PixelInterleavedSampleModel.
throw new UnsupportedOperationException("Not supported yet");
|
public static javax.imageio.ImageTypeSpecifier | createPacked(java.awt.color.ColorSpace colorSpace, int redMask, int greenMask, int blueMask, int alphaMask, int transferType, boolean isAlphaPremultiplied)Creates an ImageTypeSpecifier with the specified DirectColorModel and a
packed SampleModel.
throw new UnsupportedOperationException("Not supported yet");
|
public boolean | equals(java.lang.Object o)Compares this ImageTypeSpecifier object with the specified object.
boolean rt = false;
if (o instanceof ImageTypeSpecifier) {
ImageTypeSpecifier ts = (ImageTypeSpecifier)o;
rt = colorModel.equals(ts.colorModel) && sampleModel.equals(ts.sampleModel);
}
return rt;
|
public int | getBitsPerBand(int band)Gets the number of bits per the specified band.
if (band < 0 || band >= getNumBands()) {
throw new IllegalArgumentException();
}
return sampleModel.getSampleSize(band);
|
public int | getBufferedImageType()Gets the BufferedImage type.
throw new UnsupportedOperationException("Not supported yet");
|
public java.awt.image.ColorModel | getColorModel()Gets the ColorModel associated with this ImageTypeSpecifier.
return colorModel;
|
public int | getNumBands()Gets the number of bands.
return sampleModel.getNumBands();
|
public int | getNumComponents()Gets the number of components.
return colorModel.getNumComponents();
|
public java.awt.image.SampleModel | getSampleModel()Gets the SampleModel associated with this ImageTypeSpecifier.
return sampleModel;
|
public java.awt.image.SampleModel | getSampleModel(int width, int height)Gets a compatible SampleModel with the specified width and height.
if ((long)width * height > Integer.MAX_VALUE) {
throw new IllegalArgumentException("width * height > Integer.MAX_VALUE");
}
return sampleModel.createCompatibleSampleModel(width, height);
|