读书人

drawBit地图

发布时间: 2012-09-20 09:36:50 作者: rapoo

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的区域

读书人网 >移动开发

热点推荐