class ImageScaler
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
origH |
(package private) java.awt.Image |
origImage |
(package private) int |
origW |
| Constructor and Description |
|---|
ImageScaler(java.awt.image.BufferedImage image) |
ImageScaler(java.awt.Image image,
int w,
int h) |
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
getClosestPowerOf2(int value)
Utility method to return closes poser of 2 to the given integer
|
(package private) java.awt.Image |
getScaledImage()
Returns an Image that has been scaled from the original image to
the closest power of 2
|
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.