Class of android.graphics.drawable · NinePatchDrawable.java · Android's reference
public class NinePatchDrawable extends Drawable
NinePatchDrawable ← Drawable
A nine-patch image stretched to its bounds, with the padding of its chunk.
public NinePatchDrawable(Bitmap bitmap, byte[] chunk, Rect padding, String srcName) sourcepublic NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, Rect padding, String srcName) sourcepublic NinePatchDrawable(NinePatch patch) sourcepublic NinePatchDrawable(Resources res, NinePatch patch) sourcepublic void draw(Canvas canvas) sourcepublic void setAlpha(int alpha) sourcepublic int getAlpha() sourcepublic void setColorFilter(ColorFilter colorFilter) sourcepublic ColorFilter getColorFilter() sourcepublic Paint getPaint() sourcepublic int getOpacity() sourcepublic int getIntrinsicWidth() sourcepublic int getIntrinsicHeight() sourcepublic boolean getPadding(Rect out) 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.