public class BlueshiftImageCache
extends java.lang.Object
| Constructor and Description |
|---|
BlueshiftImageCache() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clean(android.content.Context context,
java.lang.String url)
Helps you remove the image from both memory and disk
|
static android.graphics.Bitmap |
getBitmap(android.content.Context context,
java.lang.String url)
This method can load and return a bitmap object based on the URL provided.
|
static android.graphics.Bitmap |
getScaledBitmap(android.content.Context context,
java.lang.String url,
int reqWidth,
int reqHeight)
This method can load and return a scaled bitmap based on the URL and dimensions provided.
|
static void |
loadBitmapOntoImageView(java.lang.String url,
android.widget.ImageView imageView)
This method can asynchronously load an image and set it onto an ImageView.
|
static void |
preload(android.content.Context context,
java.lang.String url)
Helps you pre-load an image and keep it in memory for faster loading next time.
|
static void |
preloadScaled(android.content.Context context,
java.lang.String url,
int reqWidth,
int reqHeight)
Helps you pre-load an image and keep it in memory for faster loading next time.
|
public static android.graphics.Bitmap getBitmap(android.content.Context context,
java.lang.String url)
context - valid Context objecturl - URL of the imageBitmap object or null based on image availabilitypublic static android.graphics.Bitmap getScaledBitmap(android.content.Context context,
java.lang.String url,
int reqWidth,
int reqHeight)
context - valid Context objecturl - URL of the imagereqWidth - output width of the bitmapreqHeight - output height of the bitmapBitmap object or null based on image availabilitypublic static void preload(android.content.Context context,
java.lang.String url)
context - valid Context objecturl - URL of the imagepublic static void preloadScaled(android.content.Context context,
java.lang.String url,
int reqWidth,
int reqHeight)
context - valid Context objecturl - URL of the imagereqWidth - output width of the bitmapreqHeight - output height of the bitmappublic static void clean(android.content.Context context,
java.lang.String url)
context - valid Context objecturl - URL of the imagepublic static void loadBitmapOntoImageView(java.lang.String url,
android.widget.ImageView imageView)
url - URL of the imageimageView - valid ImageView object