But it is not scale on center, it is to scale on position( 0, 0).
I try to scale on center.
default position is (0. 0).
first, position move center at image
float mx = canvas.getWidth(); float my = canvas.getHeight(); canvas.translate(mx/2, my/2);second, scale it.
canvas.scale(mScaleFactor, mScaleFactor);final, take back.
canvas.translate(-(mx/2), -(my/2));it is cool. source code is here. Please suggest your android issue by twitter or mail, I would try to clear up your issue.
0 件のコメント:
コメントを投稿