public class BitmapHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
TAG |
| Modifier | Constructor and Description |
|---|---|
private |
BitmapHelper() |
| Modifier and Type | Method and Description |
|---|---|
static android.graphics.Bitmap |
decodeBitmap(java.lang.String encodedBitmap)
Decode a Base64 encoding of a
Bitmap |
static boolean |
deletePNG(android.content.Context ctxt,
java.lang.String filename)
Delete file from internal storage
|
static android.graphics.Bitmap |
getBitmapFromVectorDrawable(android.content.Context ctxt,
int drawableId) |
static android.graphics.Bitmap |
loadBitmap(android.content.Context ctxt,
java.lang.String urlName)
Loads a Bitmap from the inter-webs, blocks
|
static android.graphics.Bitmap |
loadPNG(android.content.Context ctxt,
java.lang.String filename)
Load from internal storage
|
static void |
savePNG(android.content.Context ctxt,
java.lang.String filename,
android.graphics.Bitmap bitmap)
Save to internal storage as .png files
|
private static final java.lang.String TAG
@Nullable
public static android.graphics.Bitmap loadBitmap(android.content.Context ctxt,
java.lang.String urlName)
urlName - path to Bitmappublic static void savePNG(android.content.Context ctxt,
java.lang.String filename,
android.graphics.Bitmap bitmap)
ctxt - a contextfilename - name of filebitmap - Bitmap to save@Nullable
public static android.graphics.Bitmap loadPNG(android.content.Context ctxt,
java.lang.String filename)
ctxt - a contextfilename - name of filepublic static boolean deletePNG(android.content.Context ctxt,
java.lang.String filename)
ctxt - a contextfilename - name of file@CheckForNull @Nullable public static android.graphics.Bitmap decodeBitmap(java.lang.String encodedBitmap)
BitmapencodedBitmap - a Base64 encoding of a bitmap@Nullable
public static android.graphics.Bitmap getBitmapFromVectorDrawable(android.content.Context ctxt,
int drawableId)