e659. 缩放,剪取,移动,翻转图形

 AffineTransform tx = new AffineTransform();
    tx.scale(scalex, scaley);
    tx.shear(shiftx, shifty);
    tx.translate(x, y);
    tx.rotate(radians);
    Shape newShape = tx.createTransformedShape(shape);

 

Related Examples
posted @ 2018-09-02 21:38  borter  阅读(156)  评论(0编辑  收藏  举报