While rotating a bitmap using matrix, vertex is not stable..
Matrix matrix = new Matrix(); matrix.postRotate(mDegree,100,100); mCompasstemp = Bitmap.createBitmap(mCompPic, 0, 0, mCompPic.getWidth(), mCompPic.getHeight(), matrix, true); mCompassHud.setImageBitmap(mCompasstemp);
Output of my code is like -bitmap will rotate. -vertex of my bitmap is not stable. -Bitmap is resizing
I need disable image resizing and make the rotation stable.Can you please suggest a solution for this?