按比例压缩:
Bitmap bitmap =BitmapFactory.decodeResource(getResources(), R.drawable.jietu);
Matrix m = new Matrix();
1.0和0.5位压缩的值
m.setScale((float)1.0,(float) 0.5);
Bitmap zc=Bitmap.createBitmap(bitmap,0, 0, bitmap.getWidth(), bitmap.getHeight(), m, true);
按角度旋转:
//角度的值为z
Bitmap bitmap =BitmapFactory.decodeResource(getResources(), R.drawable.jietu);
Matrix matrix =new Matrix();
matrix.setRotate(z);
Bitmap bitmap2=Bitmap.createBitmap(bitmap,0, 0, bitmap.getWidth(),
bitmap.getHeight(), matrix, true);
//切割图片
Bitmap bitmap =BitmapFactory.decodeResource(getResources(), R.drawable.jietu);
//abcd传入从什么地方切割
Bitmap bitmap1=Bitmap.createBitmap(bitmap, a,b,c,d);