android imageview matrix

imageView = (ImageView) findViewById(R.id.imageView1);

Matrix matrix = new Matrix();
matrix.postScale(0.5f, 0.5f);
matrix.postTranslate(100, 20);
matrix.postRotate(30);

imageView.setImageMatrix(matrix);
xml中要设置ImageView的属性为android:scaleType="matrix"

你可能感兴趣的:(imageview)