@Implements(android.graphics.drawable.BitmapDrawable.class) public class ShadowBitmapDrawable extends ShadowDrawable
Constructor | Description |
---|---|
ShadowBitmapDrawable() |
Modifier and Type | Method | 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCorruptStreamSource, clearCorruptStreamSources, createFromPath, createFromResourceId, createFromResourceStream, createFromStream, getAlpha, getInputStream, getIntrinsicHeight, getIntrinsicWidth, invalidateSelf, setAlpha, setDefaultIntrinsicHeight, setDefaultIntrinsicWidth, setIntrinsicHeight, setIntrinsicWidth, validate, wasInvalidated
@Implementation protected void draw(Canvas canvas)
Paint
canvas
- the canvas to draw on@Implementation protected Drawable mutate()
@Implementation protected void setColorFilter(ColorFilter colorFilter)
@Deprecated public int getCreatedFromResId()
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()