首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

drawBit地图

2012-09-20 
drawBitmappublic void drawBitmap (Bitmap bitmap, Rect src, Rect dst, Paint paint)src 从图片上取一个

drawBitmap
public void drawBitmap (Bitmap bitmap, Rect src, Rect dst, Paint paint)
src 从图片上取一个范围
new Rect(int left, int top, int right, int bottom);
从left,top点截取到right,bottom点大小的区域

dst 画到屏幕的范围
new Rect(int left, int top, int right, int bottom);
将图片填充left,top到right,bottom的区域

热点排行