[ x'] [ m00 m01 m02 ] [ x ] [ m00 * x + m01 * y + m02 ] [ y'] = [ m10 m11 m12 ] [ y ] = [ m10 * x + m11 * y + m12 ] [ 1 ] [ 0 0 1 ] [ 1 ] [ 1 ]Though AffineTransform is often associated with drawing, it is not tied in any way to the Graphics class. It is purely mathematical.
| Tips | Rotating Images |
| Manual Use | Learning More |
| Drawing | Links |
| Mouse Co-ordinates |
Graphics.drawImage will do a simple scale for you, often inadvertently. You don’t need an AffineTransform for that.
You can learn more with a Google search.
![]() |
and suggestions to improve this page to Roedy Green : | ||
| Canadian Mind Products | |||
| mindprod.com IP:[65.110.21.43] | |||
| Your face IP:[38.103.63.18] | ![]() | ||
| You are visitor number 15,838. | |||
| You can get a fresh copy of this page from: | or possibly from your local J: drive (Java virtual drive/Mindprod website mirror) | ||
| http://mindprod.com/jgloss/affinetransform.html | J:\mindprod\jgloss\affinetransform.html | ||