1
Hello, I’m making an Image editing app and I need to know how to rotate 90º of an imageView and replace the original with the image that has rotted I searched the sites and found this way to do, but when I rotate, the image gets too small and I can’t rotate it again. Thanks in advance, all tip and help is welcome!
public void rotacionar(View v){
resultView; //é a minha imageView
Matrix m = new Matrix();
resultView.setScaleType(ImageView.ScaleType.MATRIX);
m.postRotate(180, 200, 200);
resultView.setImageMatrix(m);
}
No need to do it by hand, there are several libraries that already do it by default.
– Androiderson
Could you indicate me any? I would be very grateful , I found other ways to do with Animation, Rotateanimation, setAnimation, etc.. But I can’t replace the 180º rotated result with the initial..
– CristianCotrena
The advantage of doing the hand is to save processing. If Imageview will always be rotated it is best to do it by hand.
– Lucas Lima