1. 程式人生 > >e659. 縮放,剪取,移動,翻轉圖形

e659. 縮放,剪取,移動,翻轉圖形

.sh str pac amp wsh reat cal lex java

 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

e659. 縮放,剪取,移動,翻轉圖形