Hi there, I need to draw a pixmap rotated and translated into a Canvas object. For that, I use the canvas.drawBitmap method with matrix parameter this way:
matrix.setTranslate(x, y); matrix.setRotate(rotation, px, py); canvas.drawBitmap(bitmap, matrix, null); The problem is that only the last matrix.set... method works. So with previous code the bitmap is rotated, but not translated. If I do this instead: matrix.setRotate(rotation, px, py); matrix.setTranslate(x, y); canvas.drawBitmap(bitmap, matrix, null); Then the bitmap is translated but not rotated. Is there anyway to perform both operations in the same call to canvas.drawBitmap? Thanks a lot in advance, -- 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