@Implements(value=android.graphics.drawable.BitmapDrawable.class) public class ShadowBitmapDrawable extends ShadowDrawable
Constructor and Description |
---|
ShadowBitmapDrawable() |
Modifier and Type | Method and Description |
---|---|
protected void |
draw(Canvas canvas)
Draws the contained bitmap onto the canvas at 0,0 with a default
Paint |
int |
getCreatedFromResId()
Deprecated.
use ShadowBitmap#getCreatedFromResId() instead.
|
String |
getPath() |
String |
getSource() |
protected Drawable |
mutate() |
protected void |
setColorFilter(ColorFilter colorFilter) |
addCorruptStreamSource, clearCorruptStreamSources, createFromPath, createFromResourceId, createFromResourceStream, createFromStream, getAlpha, getInputStream, getIntrinsicHeight, getIntrinsicWidth, invalidateSelf, setAlpha, setDefaultIntrinsicHeight, setDefaultIntrinsicWidth, setIntrinsicHeight, setIntrinsicWidth, validate, wasInvalidated
@Implementation protected void draw(Canvas canvas)
Draws the contained bitmap onto the canvas at 0,0 with a default Paint
canvas
- the canvas to draw on@Implementation protected Drawable mutate()
@Implementation protected void setColorFilter(ColorFilter colorFilter)
@Deprecated public int getCreatedFromResId()
Returns the resource id that this BitmapDrawable
was loaded from. This lets your tests assert that the bitmap is correct without having to actually load the bitmap.
getCreatedFromResId
in class ShadowDrawable
BitmapDrawable
was loadedpublic String getSource()
public String getPath()