List of usage examples for java.awt.geom AffineTransform AffineTransform
public AffineTransform()
From source file:Main.java
public static void main(String[] args) { AffineTransform tx = new AffineTransform(); tx.scale(1, 1);//from ww w . ja v a2 s. co m Rectangle shape = new Rectangle(1, 1, 1, 1); Shape newShape = tx.createTransformedShape(shape); System.out.println("done"); }
From source file:Main.java
public static void main(String[] args) { AffineTransform tx = new AffineTransform(); tx.rotate(0.5);/*from w w w . j av a 2 s . co m*/ Rectangle shape = new Rectangle(1, 1, 1, 1); Shape newShape = tx.createTransformedShape(shape); System.out.println("done"); }
From source file:Main.java
public static void main(String[] args) { AffineTransform tx = new AffineTransform(); tx.shear(1, 1);/*from ww w . ja v a2s . c o m*/ Rectangle shape = new Rectangle(1, 1, 1, 1); Shape newShape = tx.createTransformedShape(shape); System.out.println("done"); }
From source file:BasicShapes.java
public static void main(String[] args) { AffineTransform tx = new AffineTransform(); tx.rotate(0.5);/*from w ww. ja va 2s .c o m*/ Rectangle shape = new Rectangle(1, 1, 1, 1); Shape newShape = tx.createTransformedShape(shape); }
From source file:BasicShapes.java
public static void main(String[] args) { AffineTransform tx = new AffineTransform(); tx.scale(1, 1);/*from w w w .j av a2 s . c o m*/ Rectangle shape = new Rectangle(1, 1, 1, 1); Shape newShape = tx.createTransformedShape(shape); }
From source file:Main.java
public static void main(String[] args) { AffineTransform tx = new AffineTransform(); tx.translate(1, 10);// w w w. j a va 2 s.com Rectangle shape = new Rectangle(1, 1, 1, 1); Shape newShape = tx.createTransformedShape(shape); System.out.println("done"); }
From source file:BasicShapes.java
public static void main(String[] args) { AffineTransform tx = new AffineTransform(); tx.shear(1, 1);//from ww w .j ava2 s.c om Rectangle shape = new Rectangle(1, 1, 1, 1); Shape newShape = tx.createTransformedShape(shape); }
From source file:BasicShapes.java
public static void main(String[] args) { AffineTransform tx = new AffineTransform(); tx.translate(1, 10);//from w ww . j a v a 2 s . co m Rectangle shape = new Rectangle(1, 1, 1, 1); Shape newShape = tx.createTransformedShape(shape); }
From source file:Main.java
public static void main(String[] argv) throws Exception { BufferedImage bufferedImage = new BufferedImage(200, 200, BufferedImage.TYPE_BYTE_INDEXED); AffineTransform tx = new AffineTransform(); tx.shear(2, 3);/*from w w w . ja v a 2 s. c o m*/ AffineTransformOp op = new AffineTransformOp(tx, AffineTransformOp.TYPE_BILINEAR); bufferedImage = op.filter(bufferedImage, null); }
From source file:Main.java
public static void main(String[] argv) throws Exception { BufferedImage bufferedImage = new BufferedImage(200, 200, BufferedImage.TYPE_BYTE_INDEXED); AffineTransform tx = new AffineTransform(); tx.translate(2, 1);//w w w. j a v a2s . c o m AffineTransformOp op = new AffineTransformOp(tx, AffineTransformOp.TYPE_BILINEAR); bufferedImage = op.filter(bufferedImage, null); }