<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
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);
Listpieces = ImageSplitter.split (bmp, 5, 7);
ImageButton im;
im = (ImageButton) findViewById (R.id.ImageButton11);
im.setImageBitmap (pieces [0]. bitmap) ;/ / Here grammar wrong, how to write it?
}
Reply:
The first image is displayed on the wants pieces ImageButton
Reply:
im.setImageBitmap (. pieces.get (0) bitmap);
Reply:
3q
Reply:
im.setImageBitmap (pieces.get (0) bitmap.);
No comments:
Post a Comment