【发布时间】:2013-01-04 22:58:35
【问题描述】:
我有一组瓷砖,它们被绘制在我的“画布”上。
我知道如何将我的画布转换为从它的中心缩放:
var m:Matrix = new Matrix();
m.translate(-centerX, -centerY);
m.scale(scaleX, scaleY);
m.translate(centerX, centerY);
这将缩放图块并将其转换为它的 x,y
var m:Matrix = new Matrix();
m.translate(_tile.x,_tile.y);
m.scale(_scale, _scale);
但是当我在“画布”上绘制时,如何从中心缩放所有位图图块
【问题讨论】:
标签: actionscript-3 matrix scale