@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(android.graphics.Canvas canvas)
Draws the contained bitmap onto the canvas at 0,0 with a default
Paint |
int |
getCreatedFromResId()
Deprecated.
use ShadowBitmap#getCreatedFromResId() instead.
|
java.lang.String |
getPath() |
java.lang.String |
getSource() |
protected android.graphics.drawable.Drawable |
mutate() |
protected void |
setColorFilter(android.graphics.ColorFilter colorFilter) |
addCorruptStreamSource, clearCorruptStreamSources, createFromPath, createFromResourceId, createFromResourceStream, createFromStream, getAlpha, getInputStream, getIntrinsicHeight, getIntrinsicWidth, invalidateSelf, setAlpha, setDefaultIntrinsicHeight, setDefaultIntrinsicWidth, setIntrinsicHeight, setIntrinsicWidth, validate, wasInvalidated
@Implementation protected void draw(android.graphics.Canvas canvas)
Draws the contained bitmap onto the canvas at 0,0 with a default Paint
canvas
- the canvas to draw on@Implementation protected android.graphics.drawable.Drawable mutate()
@Implementation protected void setColorFilter(android.graphics.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 java.lang.String getSource()
public java.lang.String getPath()