public class NinePatch extends Object
| Constructor and Description |
|---|
NinePatch(Bitmap bitmap,
byte[] chunk,
String srcName) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Canvas canvas,
Rect location) |
void |
draw(Canvas canvas,
RectF location) |
void |
draw(Canvas canvas,
Rect location,
Paint paint) |
int |
getDensity() |
int |
getHeight() |
Region |
getTransparentRegion(Rect location) |
int |
getWidth() |
boolean |
hasAlpha() |
static boolean |
isNinePatchChunk(byte[] chunk) |
void |
setPaint(Paint p) |
public void setPaint(Paint p)
public int getDensity()
public int getWidth()
public int getHeight()
public final boolean hasAlpha()
public static boolean isNinePatchChunk(byte[] chunk)
Copyright © 2008-2013. All Rights Reserved.