Methods Summary |
---|
public void | draw(android.graphics.Canvas canvas)
if (mPicture != null) {
Rect bounds = getBounds();
canvas.save();
canvas.clipRect(bounds);
canvas.translate(bounds.left, bounds.top);
canvas.drawPicture(mPicture);
canvas.restore();
}
|
public int | getIntrinsicHeight()
return mPicture != null ? mPicture.getHeight() : -1;
|
public int | getIntrinsicWidth()
return mPicture != null ? mPicture.getWidth() : -1;
|
public int | getOpacity()
// not sure, so be safe
return PixelFormat.TRANSLUCENT;
|
public android.graphics.Picture | getPicture()Return the picture associated with the drawable. May be null.
return mPicture;
|
public void | setAlpha(int alpha)
|
public void | setColorFilter(android.graphics.ColorFilter colorFilter)
|
public void | setDither(boolean dither)
|
public void | setFilterBitmap(boolean filter)
|
public void | setPicture(android.graphics.Picture picture)Associate a picture with this drawable. The picture may be null.
mPicture = picture;
|