關于 canvas.drawBitmap這段代碼
canvas.drawBitmap(whitePiece, (whitePoint.x + (1 - ratioPieceOfLineHeight) / 2) * mLineHeight, (whitePoint.y + (1 - ratioPieceOfLineHeight) / 2) * mLineHeight, null);
為什么必須要加上(1 -
ratioPieceOfLineHeight) / 2) * mLineHeight 這些距離設置,感覺只用whitePoint.x不就可以知道圖片的坐標直接放了,但是不加上的話就白子會一直在左上角重復出現