public class Transform extends java.lang.Object
Some of the code in this file is based on code from http://download.oracle.com/javase/tutorial/extra/fullscreen/example.html.
| Constructor and Description |
|---|
Transform() |
| Modifier and Type | Method and Description |
|---|---|
static java.awt.Image |
rotate(java.awt.Image originalImage,
int rotate)
Rotate an Image.
|
static java.awt.Image |
scale(java.awt.Image originalImage,
int maximumDimension)
Scale an image so that its maximum dimension is no larger than
the maximumDimension parameter.
|
public Transform()
public static java.awt.Image rotate(java.awt.Image originalImage, int rotate)
originalImage - The java.awt.Image to rotate.rotate - The number of degrees to rotate the originalImagepublic static java.awt.Image scale(java.awt.Image originalImage, int maximumDimension)
originalImage - The java.awt.Image to rotate.maximumDimension - The maximum x or y dimension