|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.image.ImageScaler
public class ImageScaler
This code comes from the book "Filthy Rich Clients" Chapter 4. It is optimized for fast scaling.
Constructor Summary | |
---|---|
ImageScaler()
|
Method Summary | |
---|---|
static java.awt.Image |
getOptimalScalingImage(java.awt.Image inputImage,
int startSize,
int endSize)
Progressive bilinear scaling: for any downscale size, scale iteratively by halves using BILINEAR filtering until the proper size is reached. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageScaler()
Method Detail |
---|
public static java.awt.Image getOptimalScalingImage(java.awt.Image inputImage, int startSize, int endSize)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |