截图 从图片中取一部分

int initPicture = R.drawable.beauty1 ;

Bitmap sourcePicture;//图片来源 

sourcePicture = BitmapFactory.decodeResource(gameActivity.getResources(), initPicture); //得到图片

imgView.setImageBitmap(Bitmap.createBitmap(sourcePicture,j * blockWidth, i * blockHeight, blockWidth, blockHeight));

posted @ 2011-08-10 11:37  镇水古月  阅读(304)  评论(0编辑  收藏  举报