@Implements(value=android.graphics.drawable.BitmapDrawable.class) public class ShadowBitmapDrawable extends ShadowDrawable
BitmapDrawable.| Constructor and Description |
|---|
ShadowBitmapDrawable() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getPath() |
String |
getSource() |
android.graphics.drawable.Drawable |
mutate() |
void |
setColorFilter(android.graphics.ColorFilter colorFilter) |
addCorruptStreamSource, clearCorruptStreamSources, createFromPath, createFromResourceId, createFromResourceStream, createFromStream, equals, getAlpha, getInputStream, getIntrinsicHeight, getIntrinsicWidth, hashCode, invalidateSelf, reset, setAlpha, setDefaultIntrinsicHeight, setDefaultIntrinsicWidth, setIntrinsicHeight, setIntrinsicWidth, validate, wasInvalidated@Implementation public void draw(android.graphics.Canvas canvas)
Paintcanvas - the canvas to draw on@Implementation public android.graphics.drawable.Drawable mutate()
@Implementation public void setColorFilter(android.graphics.ColorFilter colorFilter)
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 ShadowDrawableBitmapDrawable was loadedpublic String getSource()
public String getPath()
Copyright © 2016. All rights reserved.