Hi All I have this problem when rotate the image, every time that this same image is rotated, the dimensions from the image is changed and are reduced. existe some way for solution this problem ????
imageView.setDrawingCacheEnabled(true); Bitmap bitmapOrg = imageView.getDrawingCache(); int width = bitmapOrg.getWidth(); int height = bitmapOrg.getHeight(); float scaleWidth = ((float) width) / width; float scaleHeight = ((float) height) / height; Matrix matrix = new Matrix(); matrix.postRotate(45); Bitmap resizedBitmap = Bitmap.createBitmap(bitmapOrg, 0, 0, width, height, matrix, true); BitmapDrawable bmd = new BitmapDrawable(resizedBitmap); imageView.setImageDrawable(bmd); imageView.setDrawingCacheEnabled(false); Thanks David -- 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