@Implements(value=android.graphics.BitmapFactory.class) public class ShadowBitmapFactory extends Object
Constructor and Description |
---|
ShadowBitmapFactory() |
Modifier and Type | Method and Description |
---|---|
static Bitmap |
create(String name,
BitmapFactory.Options options) |
static Bitmap |
create(String name,
BitmapFactory.Options options,
Point widthAndHeight) |
protected static Bitmap |
decodeByteArray(byte[] data,
int offset,
int length) |
protected static Bitmap |
decodeByteArray(byte[] data,
int offset,
int length,
BitmapFactory.Options opts) |
protected static Bitmap |
decodeFile(String pathName) |
protected static Bitmap |
decodeFile(String pathName,
BitmapFactory.Options options) |
protected static Bitmap |
decodeFileDescriptor(FileDescriptor fd,
Rect outPadding,
BitmapFactory.Options opts) |
protected static Bitmap |
decodeResource(Resources res,
int id,
BitmapFactory.Options options) |
protected static Bitmap |
decodeResourceStream(Resources res,
TypedValue value,
InputStream is,
Rect pad,
BitmapFactory.Options opts) |
protected static Bitmap |
decodeStream(InputStream is) |
protected static Bitmap |
decodeStream(InputStream is,
Rect outPadding,
BitmapFactory.Options opts) |
static void |
provideWidthAndHeightHints(FileDescriptor fd,
int width,
int height) |
static void |
provideWidthAndHeightHints(int resourceId,
int width,
int height) |
static void |
provideWidthAndHeightHints(String file,
int width,
int height) |
static void |
provideWidthAndHeightHints(Uri uri,
int width,
int height) |
static void |
reset() |
@Implementation protected static Bitmap decodeResourceStream(Resources res, TypedValue value, InputStream is, Rect pad, BitmapFactory.Options opts)
@Implementation protected static Bitmap decodeResource(Resources res, int id, BitmapFactory.Options options)
@Implementation protected static Bitmap decodeFile(String pathName)
@Implementation protected static Bitmap decodeFile(String pathName, BitmapFactory.Options options)
@Implementation protected static Bitmap decodeFileDescriptor(FileDescriptor fd, Rect outPadding, BitmapFactory.Options opts)
@Implementation protected static Bitmap decodeStream(InputStream is)
@Implementation protected static Bitmap decodeStream(InputStream is, Rect outPadding, BitmapFactory.Options opts)
@Implementation protected static Bitmap decodeByteArray(byte[] data, int offset, int length)
@Implementation protected static Bitmap decodeByteArray(byte[] data, int offset, int length, BitmapFactory.Options opts)
public static Bitmap create(String name, BitmapFactory.Options options)
public static Bitmap create(String name, BitmapFactory.Options options, Point widthAndHeight)
public static void provideWidthAndHeightHints(Uri uri, int width, int height)
public static void provideWidthAndHeightHints(int resourceId, int width, int height)
public static void provideWidthAndHeightHints(String file, int width, int height)
public static void provideWidthAndHeightHints(FileDescriptor fd, int width, int height)
@Resetter public static void reset()