|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IImage
图形数据接口,默认支持栅格图片,gif动画,以及任意Drawable
实现类,比如NinePatchDrawable
可用于ImageUI
的数据源
ImageUI
,
Utils.registerImage(String, IImage)
Method Summary | |
---|---|
void |
draw(Canvas canvas,
Paint paint,
float width,
float height)
绘制图片 |
void |
drawSelection(Canvas canvas,
Paint paint,
float width,
float height,
float radius,
int selectionColor)
绘制图片选中效果 |
float |
getHeight()
获取图片高度 |
float |
getWidth()
获取图片宽度 |
boolean |
intersect(Point point,
float width,
float height)
判断坐标点是否与图片相交 |
Method Detail |
---|
void draw(Canvas canvas, Paint paint, float width, float height)
canvas
- paint
- width
- height
- void drawSelection(Canvas canvas, Paint paint, float width, float height, float radius, int selectionColor)
canvas
- paint
- width
- height
- radius
- selectionColor
- float getWidth()
float getHeight()
boolean intersect(Point point, float width, float height)
point
- width
- height
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |