1. 程式人生 > >e672. 縮放,剪取,移動,翻轉緩沖圖像

e672. 縮放,剪取,移動,翻轉緩沖圖像

ans center span bsp 翻轉 wid cin enter cell

 AffineTransform tx = new AffineTransform();
    tx.scale(scalex, scaley);
    tx.shear(shiftx, shifty);
    tx.translate(x, y);
    tx.rotate(radians, bufferedImage.getWidth()/2, bufferedImage.getHeight()/2);
    
    AffineTransformOp op = new AffineTransformOp(tx, AffineTransformOp.TYPE_BILINEAR);
    bufferedImage
= op.filter(bufferedImage, null);

Related Examples

e672. 縮放,剪取,移動,翻轉緩沖圖像