I use canvas.rotate(-bearing) *before* drawing - after drawing won't
work. I guess that accounts for the negative sign.

Nathan

On Mar 6, 7:21 am, Bart <bvandep...@gmail.com> wrote:
> I tested it and it works like a charm :)
> I only had to change the "-=" in this.bearing -= Math.toDegrees(diff)
> to "+=", otherwise the rotation was inverted.
>
> How do you do the rotation exactly? If I just draw the text onto the
> canvas in onDraw(Canvas canvas), and then call canvas.rotate,  then
> nothing seems to happen. But if i do canvas.drawBitmap(bitmap,
> matrix,paint) where matrix is a rotation matrix, then it does work.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to