| Modifier and Type | Field and Description |
|---|---|
| public static final int | PROGRESS_INTERVAL
The percentage increment between progress report updates. |
| private static final Pattern | SCALED_FILE_PATTERN
Regex pattern for hasScaledName |
| 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)
|
| public static InputStream | |
| public static String | |
| public static boolean | |
| 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 |
| public static void |
| PROGRESS_INTERVAL | back to summary |
|---|---|
| public static final int PROGRESS_INTERVAL The percentage increment between progress report updates. | |
| SCALED_FILE_PATTERN | back to summary |
|---|---|
| private static final Pattern SCALED_FILE_PATTERN Regex pattern for hasScaledName | |
| ImageTools | back to summary |
|---|---|
| public ImageTools() | |
| computeDimensions | back to summary |
|---|---|
| public static int[] computeDimensions(int sourceWidth, int sourceHeight, int maxWidth, int maxHeight, boolean preserveAspectRatio) | |
| createInputStream | back to summary |
|---|---|
| public static InputStream createInputStream(String input) throws IOException | |
| getScaledImageName | back to summary |
|---|---|
| public static String getScaledImageName(String path, int scaleFactor) | |
| hasScaledName | back to summary |
|---|---|
| public static boolean hasScaledName(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
| |
| validateMaxDimensions | back to summary |
|---|---|
| public static void validateMaxDimensions(double width, double height, double scaleFactor) | |