Class of android.graphics · NinePatch.java · Android's reference
public class NinePatch
A bitmap whose stretchable parts (the divs of its chunk, Res_png_9patch in a device's order) stretch to fill a rectangle, and whose other parts keep their size, as libhwui's nine-patch draws it.
public NinePatch(Bitmap bitmap, byte[] chunk) sourcepublic NinePatch(Bitmap bitmap, byte[] chunk, String srcName) sourcepublic Bitmap getBitmap() sourcepublic int getWidth() sourcepublic int getHeight() sourcepublic void draw(Canvas canvas, RectF location) sourcepublic void draw(Canvas canvas, Rect location) sourcepublic void draw(Canvas canvas, Rect location, Paint paint) sourcepublic static boolean isNinePatchChunk(byte[] chunk) sourceAs Android's native check: the chunk is long enough and was not marked as not deserialized (-1)
Made 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.