How to rotate particular image in multiple images drawn to canvas in android ?
Posted
by Andhravaala
on Stack Overflow
See other posts from Stack Overflow
or by Andhravaala
Published on 2010-06-16T08:20:13Z
Indexed on
2010/06/16
8:22 UTC
Read the original article
Hit count: 398
Hi All,
I need a small help on rotating one image around its center of axis among multiple images those are drawn to canvas in android.
I am loading images to canvas like below.
canvas.drawBitmap(mMachineBackground, 0, 0, null);
canvas.drawBitmap(mMachineRotator, 0, 0, null);
I want to rotate only the second bitmap instead of entire canvas.
And, I want to move another particular bitmap half circular like earth rotating around sun(in this case only for half circular).
Please help me in this. And, please guide me to any good Android canvas and animation sample.
Thanks in advance.
© Stack Overflow or respective owner