ChillingVan / android-openGL-canvas

An Android library that provides views using openGL canvas to draw things on SurfaceView or TextureView.
Apache License 2.0
1.13k stars 212 forks source link

BitmapMatrix rotateZ 图片变形问题 #70

Closed cat1024 closed 5 years ago

cat1024 commented 5 years ago

当 translate x,y 值不一样时,rotateZ 图片会有变形现象

CanvasGL.BitmapMatrix matrix = new CanvasGL.BitmapMatrix();

    matrix.translate(390, 0);
    matrix.rotateZ(45);
    canvas.drawBitmap(baboon, matrix);

    matrix.reset();
    matrix.translate(100, 200);
    matrix.rotateZ(45);
    canvas.drawBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.lenna), matrix);
ChillingVan commented 5 years ago

已修复,感谢提出