Android : canvas.drawBitmap() method not working properly

邮差的信 提交于 2019-12-02 03:54:42
Radhey

Thanks to every one. finally i did it using replacing this stuff Rotating Image on A canvas

 matrix.postRotate(_angle1);    
 canvas.drawBitmap(myBitmap1, matrix, null);

with this

Matrix matrix1 = new Matrix();
matrix1.setRotate(_angle1, 0, 0);
canvas.drawBitmap(myBitmap1, matrix1, null);

here ,first you should change the value like this ,

 float myAngle = 0;
 myAngle = ((90 * values.get(i)) / 16);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!