i want to rotate i image more time,and i cannot to do it in the onDraw Method,my code is:
options = new BitmapFactory.Options();
options.inScaled = false;
options.inJustDecodeBounds = false;
options.inDither = false;
options.inScaled = false;
options.inPreferredConfig = Bitmap.Config.ARGB_8888;
public void setAddBmpImage(int rotate) {
byte[] by = getBitmapByte(rotatedBitmap);
Bitmap source = BitmapFactory.decodeByteArray(by, 0, by.length, options);
Bitmap bmpSephia = Bitmap.createBitmap(rotatedBitmap.getWidth(), rotatedBitmap.getHeight(), Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(bmpSephia);
canvas.rotate(rotate);
canvas.drawBitmap(source, 0, 0, null);
rotatedBitmap= bmpSephia;
imageStartX = (screenWidth / 2 - rotatedBitmap.getWidth() / 2);
imageStartY = (screenHeight / 2 - rotatedBitmap.getHeight() / 2);
invalidate();
}
through the image rotate very well,but the image is deformation,it is very ugly ,can you tell me why,and give me a good method,thank you