|
|
|
||||||||||||||||||
|
java.awt
Code Samples Index These code examples and other materials are subject to Sun Microsystems, Inc. Legal Terms
Scaling, Shearing, Translating, and Rotating a Drawn Image
AffineTransform tx = new AffineTransform();
tx.scale(scalex, scaley);
tx.shear(shiftx, shifty);
tx.translate(x, y);
tx.rotate(radians);
g2d.drawImage(image, tx, this);
|