Hi,

I have an image which I got from my resource as below:

android.graphics.drawable.Drawable CarImage =
context.getResources().getDrawable(R.drawable.car);
Rect carRect= new Rect(x, y, x + 10, y + 10);
CarImage.setBounds(carRect);
CarImage.draw(canvas);

Now I want to draw it again on canvas but before drawing want to
rotate it by 180 degree.(want to invert it)

I tried all possible ways but can't rotate it. I also tried to use
RotateDrawable but didn't get how to use level parameter to rotate it.

Could any one plz send me a sample example to rotate image using
Drawable or RotateDrawable  class.

Thanks,
Ramesh

--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to