| Modifier and Type | Field and Description |
|---|---|
| private static final Map | |
| private int | |
| public static final int | GRAY
These constants must match with those in native |
| public static final int | |
| public static final int | |
| private int | |
| private int | inWidth
Set by native code |
| private boolean | |
| private int | |
| private int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private long | structPointer
Pointer to the native loader |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public synchronized void | dispose()
Implements com. Disposes of any resources (such as native libraries) held by this loader. |
| private static native void | |
| private native int | |
| private native int | |
| private native byte[] | |
| private native int | |
| private static native void | |
| public ImageFrame | load(int imageIndex, double w, double h, boolean preserveAspectRatio, boolean smooth, float screenPixelScale, float imagePixelScale)
Implements com. Loads the image at a given index in an image stream. |
| private native long | loadImage(final InputStream stream, boolean reportProgress)
Create a loader and buffer data from the InputStream. |
| private native long | |
| private native void | |
| private void | |
| private void | setInputParameters(int width, int height, int imageCount, int loopCount)
Called by the native code when input parameters are known. |
| private boolean | |
| private void |
| COLOR_SPACE_MAPPING | back to summary |
|---|---|
| private static final Map<Integer, ImageStorage. | |
| delayTime | back to summary |
|---|---|
| private int delayTime | |
| GRAY | back to summary |
|---|---|
| public static final int GRAY These constants must match with those in native | |
| GRAY_ALPHA | back to summary |
|---|---|
| public static final int GRAY_ALPHA | |
| GRAY_ALPHA_PRE | back to summary |
|---|---|
| public static final int GRAY_ALPHA_PRE | |
| inHeight | back to summary |
|---|---|
| private int inHeight | |
| inWidth | back to summary |
|---|---|
| private int inWidth Set by native code | |
| isDisposed | back to summary |
|---|---|
| private boolean isDisposed | |
| loopCount | back to summary |
|---|---|
| private int loopCount | |
| nImages | back to summary |
|---|---|
| private int nImages | |
| PALETTE | back to summary |
|---|---|
| public static final int PALETTE | |
| PALETTE_ALPHA | back to summary |
|---|---|
| public static final int PALETTE_ALPHA | |
| PALETTE_ALPHA_PRE | back to summary |
|---|---|
| public static final int PALETTE_ALPHA_PRE | |
| PALETTE_TRANS | back to summary |
|---|---|
| public static final int PALETTE_TRANS | |
| RGB | back to summary |
|---|---|
| public static final int RGB | |
| RGBA | back to summary |
|---|---|
| public static final int RGBA | |
| RGBA_PRE | back to summary |
|---|---|
| public static final int RGBA_PRE | |
| structPointer | back to summary |
|---|---|
| private long structPointer Pointer to the native loader | |
| IosImageLoader | back to summary |
|---|---|
| public IosImageLoader(final String urlString, final ImageDescriptor desc) throws IOException | |
| IosImageLoader | back to summary |
|---|---|
| public IosImageLoader(final InputStream inputStream, final ImageDescriptor desc) throws IOException | |
| checkNativePointer | back to summary |
|---|---|
| private void checkNativePointer() throws IOException | |
| dispose | back to summary |
|---|---|
| public synchronized void dispose() Implements com. Doc from com. Disposes of any resources (such as native libraries) held by this loader. Any further invocation of any methods on this object are undefined.
| |
| disposeLoader | back to summary |
|---|---|
| private static native void disposeLoader(long structPointer) Destroy a loader. | |
| getColorSpaceCode | back to summary |
|---|---|
| private native int getColorSpaceCode(long structPointer) Return image color space model code | |
| getDelayTime | back to summary |
|---|---|
| private native int getDelayTime(long structPointer) Return image duration for animated images | |
| getImageBuffer | back to summary |
|---|---|
| private native byte[] getImageBuffer(long structPointer, int imageIndex) Return a buffer with decompressed image data | |
| getNumberOfComponents | back to summary |
|---|---|
| private native int getNumberOfComponents(long structPointer) Return the number of color components | |
| initNativeLoading | back to summary |
|---|---|
| private static native void initNativeLoading() Set up static method IDs for calls back to Java. | |
| load | back to summary |
|---|---|
| public ImageFrame load(int imageIndex, double w, double h, boolean preserveAspectRatio, boolean smooth, float screenPixelScale, float imagePixelScale) throws IOException Implements com. Doc from com. Loads the image at a given index in an image stream. If no image exists
at that index
| |
| loadImage | back to summary |
|---|---|
| private native long loadImage(final InputStream stream, boolean reportProgress) throws IOException Create a loader and buffer data from the InputStream. Report progress if requested. | |
| loadImageFromURL | back to summary |
|---|---|
| private native long loadImageFromURL(final String url, boolean reportProgress) throws IOException Create a loader for the given URL. Report progress if requested. | |
| resizeImage | back to summary |
|---|---|
| private native void resizeImage(long structPointer, int width, int height) Set native image size | |
| retrieveDelayTime | back to summary |
|---|---|
| private void retrieveDelayTime() | |
| setInputParameters | back to summary |
|---|---|
| private void setInputParameters(int width, int height, int imageCount, int loopCount) Called by the native code when input parameters are known. | |
| shouldReportProgress | back to summary |
|---|---|
| private boolean shouldReportProgress() | |
| updateProgress | back to summary |
|---|---|
| private void updateProgress(float progressPercentage) | |