| Modifier and Type | Class and Description |
|---|---|
| public static enum | ImageStorage.
An enumeration of supported image types. |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | |
| private final ImageLoaderFactory[] | |
| private final HashMap | loaderFactoriesByMimeSubtype
A mapping of lower case MIME subtypes to loader factories. |
| private final HashMap | loaderFactoriesBySignature
A mapping of format signature byte sequences to loader factories. |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addImageLoaderFactory(ImageLoaderFactory
the factory to register. factory)Registers an image loader factory. |
| public static ImageStorage | |
| private ImageLoader | |
| private synchronized int | |
| public int | Returns: the number of bands of a raw image of this typethe type of image typeReturns the number of bands for a raw image of the specified type. |
| public ImageFormatDescription[] | |
| public ImageFrame[] | Returns: the sequence of all images in the specified source ornull on error.the image data stream. input, ImageLoadListener a listener to receive notifications about image loading. listener, double the desired width of the image; if non-positive,
the original image width will be used. width, double the desired height of the image; if non-positive, the
original image height will be used. height, boolean whether to preserve the width-to-height ratio
of the image. preserveAspectRatio, float pixelScale, boolean whether to apply smoothing when downsampling. smooth)Load all images present in the specified stream. |
| public ImageFrame[] | loadAll(String input, ImageLoadListener listener, double width, double height, boolean preserveAspectRatio, float devPixelScale, boolean smooth)
Load all images present in the specified input. |
| private ImageFrame[] | loadAll(ImageLoader loader, double width, double height, boolean preserveAspectRatio, float pixelScale, boolean smooth)
|
| isIOS | back to summary |
|---|---|
| private static final boolean isIOS | |
| loaderFactories | back to summary |
|---|---|
| private final ImageLoaderFactory[] loaderFactories | |
| loaderFactoriesByMimeSubtype | back to summary |
|---|---|
| private final HashMap<String, ImageLoaderFactory> loaderFactoriesByMimeSubtype A mapping of lower case MIME subtypes to loader factories. | |
| loaderFactoriesBySignature | back to summary |
|---|---|
| private final HashMap<ImageFormatDescription. A mapping of format signature byte sequences to loader factories. | |
| maxSignatureLength | back to summary |
|---|---|
| private int maxSignatureLength | |
| ImageStorage | back to summary |
|---|---|
| public ImageStorage() | |
| addImageLoaderFactory | back to summary |
|---|---|
| public void addImageLoaderFactory(ImageLoaderFactory factory) Registers an image loader factory. The factory replaces any other factory previously registered for the file extensions (converted to lower case), MIME subtype, and signature indicated by the format description.
| |
| getInstance | back to summary |
|---|---|
| public static ImageStorage getInstance() | |
| getLoaderBySignature | back to summary |
|---|---|
| private ImageLoader getLoaderBySignature(InputStream stream, ImageLoadListener listener) throws IOException | |
| getMaxSignatureLength | back to summary |
|---|---|
| private synchronized int getMaxSignatureLength() | |
| getNumBands | back to summary |
|---|---|
| public int getNumBands(ImageStorage. Returns the number of bands for a raw image of the specified type.
| |
| getSupportedDescriptions | back to summary |
|---|---|
| public ImageFormatDescription[] getSupportedDescriptions() | |
| loadAll | back to summary |
|---|---|
| public ImageFrame[] loadAll(InputStream input, ImageLoadListener listener, double width, double height, boolean preserveAspectRatio, float pixelScale, boolean smooth) throws ImageStorageException Load all images present in the specified stream. The image will be
rescaled according to this algorithm:
| |
| loadAll | back to summary |
|---|---|
| public ImageFrame[] loadAll(String input, ImageLoadListener listener, double width, double height, boolean preserveAspectRatio, float devPixelScale, boolean smooth) throws ImageStorageException Load all images present in the specified input. For more details refer to
| |
| loadAll | back to summary |
|---|---|
| private ImageFrame[] loadAll(ImageLoader loader, double width, double height, boolean preserveAspectRatio, float pixelScale, boolean smooth) throws ImageStorageException | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ImageStorage. | GRAY
An image with a single channel of 8-bit valued gray levels. |
| public static final ImageStorage. | GRAY_ALPHA
An image with with two 8-bit valued channels, one of gray levels, the other of non-premultiplied opacity, ordered as GAGAGA... |
| public static final ImageStorage. | GRAY_ALPHA_PRE
An image with with two 8-bit valued channels, one of gray levels, the other of premultiplied opacity, ordered as GAGAGA... |
| public static final ImageStorage. | PALETTE
An image with with one 8-bit channel of indexes into a 24-bit lookup table which maps the indexes to 8-bit RGB components. |
| public static final ImageStorage. | PALETTE_ALPHA
An image with with one 8-bit channel of indexes into a 32-bit lookup table which maps the indexes to 8-bit RGBA components wherein the opacity is not-premultiplied. |
| public static final ImageStorage. | PALETTE_ALPHA_PRE
An image with with one 8-bit channel of indexes into a 32-bit lookup table which maps the indexes to 8-bit RGBA components wherein the opacity is premultiplied. |
| public static final ImageStorage. | PALETTE_TRANS
An image with with one 8-bit channel of indexes into a 24-bit lookup table which maps the indexes to 8-bit RGB components, and a single transparent index to indicate the location of transparent pixels. |
| public static final ImageStorage. | RGB
An image with with three 8-bit valued channels of red, green, and blue, respectively, ordered as RGBRGBRGB... |
| public static final ImageStorage. | RGBA
An image with with four 8-bit valued channels of red, green, blue, and non-premultiplied opacity, respectively, ordered as RGBARGBARGBA... |
| public static final ImageStorage. | RGBA_PRE
An image with with four 8-bit valued channels of red, green, blue, and premultiplied opacity, respectively, ordered as RGBARGBARGBA... |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ImageStorage. | |
| public static ImageStorage. |
| GRAY | back to summary |
|---|---|
| public static final ImageStorage. An image with a single channel of 8-bit valued gray levels. | |
| GRAY_ALPHA | back to summary |
|---|---|
| public static final ImageStorage. An image with with two 8-bit valued channels, one of gray levels, the other of non-premultiplied opacity, ordered as GAGAGA... | |
| GRAY_ALPHA_PRE | back to summary |
|---|---|
| public static final ImageStorage. An image with with two 8-bit valued channels, one of gray levels, the other of premultiplied opacity, ordered as GAGAGA... | |
| PALETTE | back to summary |
|---|---|
| public static final ImageStorage. An image with with one 8-bit channel of indexes into a 24-bit lookup table which maps the indexes to 8-bit RGB components. | |
| PALETTE_ALPHA | back to summary |
|---|---|
| public static final ImageStorage. An image with with one 8-bit channel of indexes into a 32-bit lookup table which maps the indexes to 8-bit RGBA components wherein the opacity is not-premultiplied. | |
| PALETTE_ALPHA_PRE | back to summary |
|---|---|
| public static final ImageStorage. An image with with one 8-bit channel of indexes into a 32-bit lookup table which maps the indexes to 8-bit RGBA components wherein the opacity is premultiplied. | |
| PALETTE_TRANS | back to summary |
|---|---|
| public static final ImageStorage. An image with with one 8-bit channel of indexes into a 24-bit lookup table which maps the indexes to 8-bit RGB components, and a single transparent index to indicate the location of transparent pixels. | |
| RGB | back to summary |
|---|---|
| public static final ImageStorage. An image with with three 8-bit valued channels of red, green, and blue, respectively, ordered as RGBRGBRGB... | |
| RGBA | back to summary |
|---|---|
| public static final ImageStorage. An image with with four 8-bit valued channels of red, green, blue, and non-premultiplied opacity, respectively, ordered as RGBARGBARGBA... | |
| RGBA_PRE | back to summary |
|---|---|
| public static final ImageStorage. An image with with four 8-bit valued channels of red, green, blue, and premultiplied opacity, respectively, ordered as RGBARGBARGBA... | |
| ImageType | back to summary |
|---|---|
| private ImageType() | |
| valueOf | back to summary |
|---|---|
| public static ImageStorage. | |
| values | back to summary |
|---|---|
| public static ImageStorage. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final ImageStorage |
| Access | Constructor and Description |
|---|---|
| private |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final ImageStorage INSTANCE | |
| InstanceHolder | back to summary |
|---|---|
| private InstanceHolder() | |