public class ImagePiece {
public int index = 0;
public Bitmap bitmap = null;
}
public void init()
{
// Bitmap bitmap = BitmapFactory.decodeResource(this.getContext().getResources(), R.drawable.test);
Bitmap bmp=BitmapFactory.decodeResource(this.getResources(),R.drawable.koala);
List<ImagePiece> pieces = ImageSplitter.split(bmp, 5, 7);
ImageButton im;
im=(ImageButton)findViewById(R.id.ImageButton11);
im.setImageBitmap(pieces[0].bitmap);//这里语法错了,该怎么写呢?
}
bmpjavabitmapList
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货