Class of android.graphics.drawable · BitmapDrawable.java · Android's reference
public class BitmapDrawable extends Drawable
BitmapDrawable ← Drawable
A bitmap drawn into the bounds.
public BitmapDrawable(android.content.res.Resources res, Bitmap bitmap) sourcepublic BitmapDrawable(Bitmap bitmap) sourcepublic void inflate(android.content.res.Resources r, org.xmlpull.v1.XmlPullParser parser, android.util.AttributeSet attrs, android.content.res.Resources.Theme theme) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException sourcea <bitmap>: the image of its source, where its gravity puts it, or tiled
public final Bitmap getBitmap() sourcepublic final Paint getPaint() sourcepublic int getGravity() sourcepublic void setGravity(int gravity) sourcepublic Shader.TileMode getTileModeX() sourcepublic Shader.TileMode getTileModeY() sourcepublic void setTileModeX(Shader.TileMode mode) sourcepublic final void setTileModeY(Shader.TileMode mode) sourcepublic void setTileModeXY(Shader.TileMode xmode, Shader.TileMode ymode) sourcepublic void draw(Canvas canvas) sourceA tiled bitmap fills the bounds from their corner; otherwise the bitmap goes where its gravity puts it.
public void setAlpha(int alpha) sourcepublic int getAlpha() sourcepublic void setColorFilter(ColorFilter colorFilter) sourcepublic int getOpacity() sourcepublic int getIntrinsicWidth() sourcepublic int getIntrinsicHeight() sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.