Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public static final void | canEncodeImage(ImageWriter
The provided writer, ImageTypeSpecifier ImageWriter .The image to be tested. type)Checks that the provided |
public static final void | canEncodeImage(ImageWriter
The provided writer, ColorModel ImageWriter .The provided colorModel, SampleModel ColorModel .The provided sampleModel)SampleModel .Checks that the provided |
public static String | |
public static final ColorModel | Returns: An instance ofColorModel that is suitable for
the supplied SampleModel , or null .Creates a |
public static ColorModel | |
public static long | |
public static final ImageTypeSpecifier | getDestinationType(ImageReadParam param, Iterator<ImageTypeSpecifier> imageTypes)
Gets the destination image type. |
public static int | |
public static byte[] | Returns: the binary data as a packed array of bytes with zero offset ofnull if the data are not binary.For the case of binary data ( |
public static long | |
public static byte[] | getUnpackedBinaryData(Raster raster, Rectangle rect)
Returns the binary data unpacked into an array of bytes. |
public static final boolean | |
public static boolean | |
public static boolean | Returns: If all the indices have 256 entries, and are identical mappings, returntrue ; otherwise, return false .The red channel color indices. r, byte[] The green channel color indices. g, byte[] The blue channel color indices. b)Tests whether the color indices represent a gray-scale image. |
public static boolean | isNonStandardICCColorSpace(ColorSpace
the cs)ColorSpace to testReturns |
public static void | setPackedBinaryData(byte[] binaryDataArray, WritableRaster raster, Rectangle rect)
Sets the supplied |
public static void | setUnpackedBinaryData(byte[] bdata, WritableRaster raster, Rectangle rect)
Copies data into the packed array of the |
ImageUtil | back to summary |
---|---|
public ImageUtil() |
canEncodeImage | back to summary |
---|---|
public static final void canEncodeImage(ImageWriter writer, ImageTypeSpecifier type) throws IIOException Checks that the provided
|
canEncodeImage | back to summary |
---|---|
public static final void canEncodeImage(ImageWriter writer, ColorModel colorModel, SampleModel sampleModel) throws IIOException Checks that the provided
|
convertObjectToString | back to summary |
---|---|
public static String convertObjectToString(Object obj) Converts the provided object to |
createColorModel | back to summary |
---|---|
public static final ColorModel createColorModel(SampleModel sampleModel) Creates a Suitable An instance of An instance of
|
createColorModel | back to summary |
---|---|
public static ColorModel createColorModel(ColorSpace colorSpace, SampleModel sampleModel) |
getBandSize | back to summary |
---|---|
public static long getBandSize(SampleModel sm) |
getDestinationType | back to summary |
---|---|
public static final ImageTypeSpecifier getDestinationType(ImageReadParam param, Iterator<ImageTypeSpecifier> imageTypes) throws IIOException Gets the destination image type. |
getElementSize | back to summary |
---|---|
public static int getElementSize(SampleModel sm) |
getPackedBinaryData | back to summary |
---|---|
public static byte[] getPackedBinaryData(Raster raster, Rectangle rect) For the case of binary data (
|
getTileSize | back to summary |
---|---|
public static long getTileSize(SampleModel sm) |
getUnpackedBinaryData | back to summary |
---|---|
public static byte[] getUnpackedBinaryData(Raster raster, Rectangle rect) Returns the binary data unpacked into an array of bytes.
The line stride will be the width of the
|
imageIsContiguous | back to summary |
---|---|
public static final boolean imageIsContiguous(RenderedImage image) Returns whether the image has contiguous data across rows. |
isBinary | back to summary |
---|---|
public static boolean isBinary(SampleModel sm) |
isIndicesForGrayscale | back to summary |
---|---|
public static boolean isIndicesForGrayscale(byte[] r, byte[] g, byte[] b) Tests whether the color indices represent a gray-scale image.
|
isNonStandardICCColorSpace | back to summary |
---|---|
public static boolean isNonStandardICCColorSpace(ColorSpace cs) Returns
|
setPackedBinaryData | back to summary |
---|---|
public static void setPackedBinaryData(byte[] binaryDataArray, WritableRaster raster, Rectangle rect) Sets the supplied
|
setUnpackedBinaryData | back to summary |
---|---|
public static void setUnpackedBinaryData(byte[] bdata, WritableRaster raster, Rectangle rect) Copies data into the packed array of the If the data are binary, then the target bit will be set if and only if the corresponding byte is non-zero.
|