0

我想设置左坐标和上Bitmap坐标,然后对其应用 Y 平移和旋转,Bitmap但我不能......结果不是我所期望的。

这是我的代码:

point[0] = centerX-bitmapWidth/2;
point[1] = centerY;
point[2] = centerX+bitmapWidth/2;
point[3] = centerY;

rotateMat = new Matrix();
rotateMat.setTranslate(0, translationY);
rotateMat.setRotate(angle, centerX, centerY);
rotateMat.mapPoints(point);

canvas.drawBitmap(myBitmap, rotateMat, paint);

你可以帮帮我吗 ?

谢谢。

4

0 回答 0