HI! I have a png-picture in ImageView rotatedimage = new ImageView ()
Is there a better way to rotate it in changing directions than the following way? There I have to create a new picture for every new rotating angle and add it to the layout: Bitmap bitmap = BitmapFactory.decodeResource(getResources (),R.drawable.frosch); Matrix rotationMatrix = new Matrix(); rotationMatrix.setRotate(grad); Bitmap rotatedbitmap = Bitmap.createBitmap(frogbitmap, 0, 0, rotatedbitmap.getWidth(), rotatedbitmap.getHeight(), rotationMatrix, true); BitmapDrawable bmd = new BitmapDrawable(rotatedbitmap); rotatedimage.setImageDrawable(bmd); mtrx.postRotate(10); rotatedimage.setImageMatrix(mtrx); Greetings, Martin -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] 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

