public class IosImageLoader extends ImageLoaderImpl
| Modifier and Type | Field and Description |
|---|---|
static int |
GRAY
These constants must match with those in native
|
static int |
GRAY_ALPHA |
static int |
GRAY_ALPHA_PRE |
static int |
PALETTE |
static int |
PALETTE_ALPHA |
static int |
PALETTE_ALPHA_PRE |
static int |
PALETTE_TRANS |
static int |
RGB |
static int |
RGBA |
static int |
RGBA_PRE |
formatDescription, lastPercentDone, listeners| Constructor and Description |
|---|
IosImageLoader(InputStream inputStream,
ImageDescriptor desc) |
IosImageLoader(String urlString,
ImageDescriptor desc) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes of any resources (such as native libraries) held by this loader.
|
protected void |
finalize() |
ImageFrame |
load(int imageIndex,
int width,
int height,
boolean preserveAspectRatio,
boolean smooth)
Loads the image at a given index in an image stream.
|
addListener, emitWarning, getFormatDescription, removeListener, updateImageMetadata, updateImageProgresspublic static final int GRAY
public static final int GRAY_ALPHA
public static final int GRAY_ALPHA_PRE
public static final int PALETTE
public static final int PALETTE_ALPHA
public static final int PALETTE_ALPHA_PRE
public static final int PALETTE_TRANS
public static final int RGB
public static final int RGBA
public static final int RGBA_PRE
public IosImageLoader(String urlString, ImageDescriptor desc) throws IOException
IOExceptionpublic IosImageLoader(InputStream inputStream, ImageDescriptor desc) throws IOException
IOExceptionpublic void dispose()
ImageLoaderpublic ImageFrame load(int imageIndex, int width, int height, boolean preserveAspectRatio, boolean smooth) throws IOException
ImageLoadernull will be returned.imageIndex - the zero-relative index of the image to load.width - the desired image width. If non-positive,
an IllegalArgumentException will be thrown.height - the desired image height. If non-positive,
an IllegalArgumentException will be thrown.preserveAspectRatio - whether to preserve the width-to-height ratio
of the image.smooth - whether to use a smooth downscaling algorithm.null on error.IOExceptionCopyright © 2025. All rights reserved.