[android-developers] Draw bitmaps one after other using canvas
How can I draw bitmaps one after other. I was trying to draw three
bitmaps as follows.
Bitmap kangoo =
BitmapFactory.decodeResource(getResources(),R.drawable.flowers1);
canvas.drawColor(Color.BLACK);
canvas.drawBitmap(kangoo, 0, 0, null);
Bitmap kangoo =
BitmapFactory.decodeResource(getResources(),R.drawable.flowers2);
canvas.drawColor(Color.BLACK);
canvas.drawBitmap(kangoo, 0, 0, null);
Bitmap kangoo =
BitmapFactory.decodeResource(getResources(),R.drawable.flowers3);
canvas.drawColor(Color.BLACK);
canvas.drawBitmap(kangoo, 0, 0, null);
But it draws only the last image. What is the problem? How can I solve
it?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home