thanassis.com
home
blog
Online Games
Sudoku
Ivory Tower
Web Hangman
Software
Java
Object Oriented
Mobiles / J2ME
Research
C.S. Resources
Galleries
Greece
Music
Photography
Art
Personal
About me
Useful Links
Contact
Site
Downloads
My other sites
Thanassis.gr
Djangopedia
Kilogames
Xoocle
TrainJava
GameAnatomy
Latest News
Transformations
getRotateInstance((10*Math.PI)/180);
getShearInstance(.5,0);
getScaleInstance(.7,.7);
getTranslateInstance(150,0);
public void paint(Graphics g) {
Graphics2D g2d = (Graphics2D)g;
Rectangle2D rect1 = new Rectangle2D.Double(132,42,100,100);
AffineTransform at = AffineTransform.<XXX>
g2d.setTransform(at);
g2d.setColor(Color.red);
g2d.fill(rect1);
}
getScaleInstance(1,1);
Use compose() to mix Transformations
Previous slide
Next slide
Back to first slide
View graphic version
Web
this site
Thanassis Blog News
In the News
Deep impact smashes comet
3 Florida shark attacks in a week
Mad Cow
summit in Scotland
Search the Archives