| Modifier and Type | Field and Description |
|---|---|
| public static final int | PROGRESS_INTERVAL
The percentage increment between progress report updates. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static int[] | computeDimensions(int sourceWidth, int sourceHeight, int maxWidth, int maxHeight, boolean preserveAspectRatio)
|
| private static void | computeUpdatedPixels(int sourceOffset, int sourceExtent, int destinationOffset, int dstMin, int dstMax, int sourceSubsampling, int passStart, int passExtent, int passPeriod, int[] vals, int offset)
|
| public static int[] | Returns: an array of 6ints containing the
destination min X, min Y, width, height, X period and Y period
of the region that will be updated.a sourceRegion, Point2D Rectangle containing the
source region being read, offset by the source subsampling
offsets, and clipped against the source bounds, as returned by
the getSourceRegion method.a destinationOffset, int Point containing the
coordinates of the upper-left pixel to be written in the
destination.the smallest X coordinate (inclusive) of the
destination dstMinX, int Raster.the smallest Y coordinate (inclusive) of the
destination dstMinY, int Raster.the largest X coordinate (inclusive) of the destination
dstMaxX, int Raster.the largest Y coordinate (inclusive) of the destination
dstMaxY, int Raster.the X subsampling factor. sourceXSubsampling, int the Y subsampling factor. sourceYSubsampling, int the smallest source X coordinate (inclusive)
of the current progressive pass. passXStart, int the smallest source Y coordinate (inclusive)
of the current progressive pass. passYStart, int the width in pixels of the current progressive
pass. passWidth, int the height in pixels of the current progressive
pass. passHeight, int the X period (horizontal spacing between
pixels) of the current progressive pass. passPeriodX, int the Y period (vertical spacing between
pixels) of the current progressive pass. passPeriodY)A utility method that computes the exact set of destination pixels that will be written during a particular decoding pass. |
| public static byte[] | convert(int width, int height, ImageStorage.
|
| public static ImageFrame | |
| public static byte[] | |
| public static InputStream | |
| public static ImageStorage. | |
| public static String | |
| public static int | readFully(InputStream
the stream from which to read the data. stream, byte[] the buffer into which the data is read. b, int the start offset of the data. off, int the number of bytes to read. len)See the general contract of the |
| public static int | readFully(InputStream
the stream from which to read the data. stream, byte[] the buffer into which the data is read. b)See the general contract of the |
| public static ByteBuffer | scaleImage(ByteBuffer src, int sourceWidth, int sourceHeight, int numBands, int destWidth, int destHeight, boolean isSmooth)
|
| public static ImageFrame | |
| public static void | skipFully(InputStream
the stream to skip. stream, long the number of bytes to be skipped. n)Skips over |
| PROGRESS_INTERVAL | back to summary |
|---|---|
| public static final int PROGRESS_INTERVAL The percentage increment between progress report updates. | |
| ImageTools | back to summary |
|---|---|
| public ImageTools() | |
| computeDimensions | back to summary |
|---|---|
| public static int[] computeDimensions(int sourceWidth, int sourceHeight, int maxWidth, int maxHeight, boolean preserveAspectRatio) | |
| computeUpdatedPixels | back to summary |
|---|---|
| private static void computeUpdatedPixels(int sourceOffset, int sourceExtent, int destinationOffset, int dstMin, int dstMax, int sourceSubsampling, int passStart, int passExtent, int passPeriod, int[] vals, int offset) | |
| computeUpdatedPixels | back to summary |
|---|---|
| public static int[] computeUpdatedPixels(Rectangle sourceRegion, Point2D destinationOffset, int dstMinX, int dstMinY, int dstMaxX, int dstMaxY, int sourceXSubsampling, int sourceYSubsampling, int passXStart, int passYStart, int passWidth, int passHeight, int passPeriodX, int passPeriodY) A utility method that computes the exact set of destination
pixels that will be written during a particular decoding pass.
The intent is to simplify the work done by readers in combining
the source region, source subsampling, and destination offset
information obtained from the
| |
| convert | back to summary |
|---|---|
| public static byte[] convert(int width, int height, ImageStorage. | |
| convertImageFrame | back to summary |
|---|---|
| public static ImageFrame convertImageFrame(ImageFrame frame) | |
| createImageArray | back to summary |
|---|---|
| public static byte[] createImageArray(ImageStorage. | |
| createInputStream | back to summary |
|---|---|
| public static InputStream createInputStream(String input) throws IOException | |
| getConvertedType | back to summary |
|---|---|
| public static ImageStorage. | |
| getScaledImageName | back to summary |
|---|---|
| public static String getScaledImageName(String path) | |
| readFully | back to summary |
|---|---|
| public static int readFully(InputStream stream, byte[] b, int off, int len) throws IOException See the general contract of the Bytes for this operation are read from the specified input stream.
| |
| readFully | back to summary |
|---|---|
| public static int readFully(InputStream stream, byte[] b) throws IOException See the general contract of the Bytes for this operation are read from the contained input stream.
| |
| scaleImage | back to summary |
|---|---|
| public static ByteBuffer scaleImage(ByteBuffer src, int sourceWidth, int sourceHeight, int numBands, int destWidth, int destHeight, boolean isSmooth) | |
| scaleImageFrame | back to summary |
|---|---|
| public static ImageFrame scaleImageFrame(ImageFrame src, int destWidth, int destHeight, boolean isSmooth) | |
| skipFully | back to summary |
|---|---|
| public static void skipFully(InputStream stream, long n) throws IOException Skips over
| |