| 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 Optional | |
| 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. |
| private ImageLoader | |
| 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 devPixelScale, float imgPixelScale, boolean smooth)
|
| private synchronized ImageLoader | tryCreateJ2DImageLoader(InputStream stream)
Tries to create an |
| isIOS | back to summary |
|---|---|
| private static final boolean isIOS | |
| j2dImageLoaderFactory | back to summary |
|---|---|
| private Optional<ImageLoaderFactory> j2dImageLoaderFactory | |
| 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.
| |
| findImageLoader | back to summary |
|---|---|
| private ImageLoader findImageLoader(InputStream stream, ImageLoadListener listener) throws IOException | |
| 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 devPixelScale, float imgPixelScale, boolean smooth) throws ImageStorageException | |
| tryCreateJ2DImageLoader | back to summary |
|---|---|
| private synchronized ImageLoader tryCreateJ2DImageLoader(InputStream stream) throws IOException Tries to create an | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ImageStorage. | ABGR
An image with four 8-bit valued channels of red, green, blue, and non-premultiplied opacity, respectively, ordered as ABGRABGRABGR... |
| public static final ImageStorage. | ABGR_PRE
An image with four 8-bit valued channels of red, green, blue, and premultiplied opacity, respectively, ordered as ABGRABGRABGR... |
| public static final ImageStorage. | BGR
An image with three 8-bit valued channels of red, green, and blue, respectively, ordered as BGRBGRBGR... |
| public static final ImageStorage. | BGRA
An image with four 8-bit valued channels of red, green, blue, and non-premultiplied opacity, respectively, ordered as BGRABGRABGRA... |
| public static final ImageStorage. | BGRA_PRE
An image with four 8-bit valued channels of red, green, blue, and premultiplied opacity, respectively, ordered as BGRABGRABGRA... |
| 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 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 two 8-bit valued channels, one of gray levels, the other of premultiplied opacity, ordered as GAGAGA... |
| public static final ImageStorage. | INT_ARGB
An image with four 8-bit valued channels of red, green, blue, and non-premultiplied opacity, packed into a 32-bit integer, ordered as ARGBARGBARGB... |
| public static final ImageStorage. | INT_ARGB_PRE
An image with four 8-bit valued channels of red, green, blue, and premultiplied opacity, packed into a 32-bit integer, ordered as ARGBARGBARGB... |
| public static final ImageStorage. | INT_BGR
An image with three 8-bit valued channels of red, green, and blue, packed into a 32-bit integer, ordered as XBGRXBGRXBGR... |
| public static final ImageStorage. | INT_RGB
An image with three 8-bit valued channels of red, green, and blue, packed into a 32-bit integer, ordered as XRGBXRGBXRGB... |
| public static final ImageStorage. | PALETTE
An image with one 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 one 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 one 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 one 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 three 8-bit valued channels of red, green, and blue, respectively, ordered as RGBRGBRGB... |
| public static final ImageStorage. | RGBA
An image 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 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. |
| ABGR | back to summary |
|---|---|
| public static final ImageStorage. An image with four 8-bit valued channels of red, green, blue, and non-premultiplied opacity, respectively, ordered as ABGRABGRABGR... | |
| ABGR_PRE | back to summary |
|---|---|
| public static final ImageStorage. An image with four 8-bit valued channels of red, green, blue, and premultiplied opacity, respectively, ordered as ABGRABGRABGR... | |
| BGR | back to summary |
|---|---|
| public static final ImageStorage. An image with three 8-bit valued channels of red, green, and blue, respectively, ordered as BGRBGRBGR... | |
| BGRA | back to summary |
|---|---|
| public static final ImageStorage. An image with four 8-bit valued channels of red, green, blue, and non-premultiplied opacity, respectively, ordered as BGRABGRABGRA... | |
| BGRA_PRE | back to summary |
|---|---|
| public static final ImageStorage. An image with four 8-bit valued channels of red, green, blue, and premultiplied opacity, respectively, ordered as BGRABGRABGRA... | |
| 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 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 two 8-bit valued channels, one of gray levels, the other of premultiplied opacity, ordered as GAGAGA... | |
| INT_ARGB | back to summary |
|---|---|
| public static final ImageStorage. An image with four 8-bit valued channels of red, green, blue, and non-premultiplied opacity, packed into a 32-bit integer, ordered as ARGBARGBARGB... | |
| INT_ARGB_PRE | back to summary |
|---|---|
| public static final ImageStorage. An image with four 8-bit valued channels of red, green, blue, and premultiplied opacity, packed into a 32-bit integer, ordered as ARGBARGBARGB... | |
| INT_BGR | back to summary |
|---|---|
| public static final ImageStorage. An image with three 8-bit valued channels of red, green, and blue, packed into a 32-bit integer, ordered as XBGRXBGRXBGR... | |
| INT_RGB | back to summary |
|---|---|
| public static final ImageStorage. An image with three 8-bit valued channels of red, green, and blue, packed into a 32-bit integer, ordered as XRGBXRGBXRGB... | |
| PALETTE | back to summary |
|---|---|
| public static final ImageStorage. An image with one 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 one 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 one 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 one 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 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 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 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() | |