[android-developers] Re: Rotate PNG (Bitmap) around a set pivot

2009-03-04 Thread Kather Jailani
Draw a line from the pivot, do a XOR of the previously drawn line so that it will be undrawn/removed frm the screen then draw the new line, this how I did a small clock app in Windows On Mar 3, 2009 10:35 PM, "xspotlivin" wrote: I'm creating an application that includes a clock. I will only hav

[android-developers] Re: Rotate PNG (Bitmap) around a set pivot

2009-03-04 Thread Mark Murphy
xspotlivin wrote: > I'm creating an application that includes a clock. I will only have an > hour hand, which will be a PNG file rotating around a pivot. I want to > update its angle every 4 mins (1 degree on a 24-hour clock). Does > anyone have an idea of how to rotate an image around a specific

[android-developers] Re: Rotate PNG (Bitmap) around a set pivot

2009-03-03 Thread Dan Raaka
Use android.graphics.Camera .. there is rotateY(float degrees) that you use for rotation and translate (float x, float y, float z) for pivoting ... On Mar 3, 8:34 pm, xspotlivin wrote: > I'm creating an application that includes a clock. I will only have an > hour hand, which will be a PNG fil