Modifier and Type | Method and Description |
---|---|
void |
ImageLoader.loadImage(String uri,
ImageSize targetImageSize,
DisplayImageOptions options,
ImageLoadingListener listener)
Adds load image task to execution pool.
|
void |
ImageLoader.loadImage(String uri,
ImageSize targetImageSize,
DisplayImageOptions options,
ImageLoadingListener listener,
ImageLoadingProgressListener progressListener)
Adds load image task to execution pool.
|
void |
ImageLoader.loadImage(String uri,
ImageSize targetImageSize,
ImageLoadingListener listener)
Adds load image task to execution pool.
|
android.graphics.Bitmap |
ImageLoader.loadImageSync(String uri,
ImageSize targetImageSize)
Loads and decodes image synchronously.
Default display image options from configuration will be used. NOTE: ImageLoader.init(ImageLoaderConfiguration) method must be called before this method call |
android.graphics.Bitmap |
ImageLoader.loadImageSync(String uri,
ImageSize targetImageSize,
DisplayImageOptions options)
Loads and decodes image synchronously.
NOTE: ImageLoader.init(ImageLoaderConfiguration) method must be called before this method call |
Modifier and Type | Method and Description |
---|---|
ImageSize |
ImageSize.scale(float scale)
Scales dimensions according to incoming scale.
|
ImageSize |
ImageSize.scaleDown(int sampleSize)
Scales down dimensions in sampleSize times.
|
Modifier and Type | Field and Description |
---|---|
ImageSize |
BaseImageDecoder.ImageFileInfo.imageSize |
Modifier and Type | Method and Description |
---|---|
ImageSize |
ImageDecodingInfo.getTargetSize() |
Modifier and Type | Method and Description |
---|---|
protected android.graphics.BitmapFactory.Options |
BaseImageDecoder.prepareDecodingOptions(ImageSize imageSize,
ImageDecodingInfo decodingInfo) |
Constructor and Description |
---|
BaseImageDecoder.ImageFileInfo(ImageSize imageSize,
BaseImageDecoder.ExifInfo exif) |
ImageDecodingInfo(String imageKey,
String imageUri,
String originalImageUri,
ImageSize targetSize,
ViewScaleType viewScaleType,
ImageDownloader downloader,
DisplayImageOptions displayOptions) |
Modifier and Type | Field and Description |
---|---|
protected ImageSize |
NonViewAware.imageSize |
Constructor and Description |
---|
NonViewAware(ImageSize imageSize,
ViewScaleType scaleType) |
NonViewAware(String imageUri,
ImageSize imageSize,
ViewScaleType scaleType) |
Modifier and Type | Method and Description |
---|---|
static ImageSize |
ImageSizeUtils.defineTargetSizeForView(ImageAware imageAware,
ImageSize maxImageSize)
Defines target size for image aware view.
|
Modifier and Type | Method and Description |
---|---|
static int |
ImageSizeUtils.computeImageSampleSize(ImageSize srcSize,
ImageSize targetSize,
ViewScaleType viewScaleType,
boolean powerOf2Scale)
Computes sample size for downscaling image size (srcSize) to view size (targetSize).
|
static float |
ImageSizeUtils.computeImageScale(ImageSize srcSize,
ImageSize targetSize,
ViewScaleType viewScaleType,
boolean stretch)
Computes scale of target size (targetSize) to source size (srcSize).
Examples: |
static int |
ImageSizeUtils.computeMinImageSampleSize(ImageSize srcSize)
Computes minimal sample size for downscaling image so result image size won't exceed max acceptable OpenGL
texture size.
We can't create Bitmap in memory with size exceed max texture size (usually this is 2048x2048) so this method calculate minimal sample size which should be applied to image to fit into these limits. |
static ImageSize |
ImageSizeUtils.defineTargetSizeForView(ImageAware imageAware,
ImageSize maxImageSize)
Defines target size for image aware view.
|
static String |
MemoryCacheUtils.generateKey(String imageUri,
ImageSize targetSize)
Generates key for memory cache for incoming image (URI + size).
Pattern for cache key - [imageUri]_[width]x[height]. |
Copyright © 2011-2015. All Rights Reserved.