ImageScaler (OpenMap API)
Date: 2016-12-09

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bbn.openmap.util
Class ImageScaler

    java.lang.Object
      com.bbn.openmap.util.ImageScaler

    public class ImageScaler

extends java.lang.Object

This code comes from the book "Filthy Rich Clients" Chapter 4. It is optimized for fast scaling.

Author:
  Chet Hasse

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

### ImageScaler

    public ImageScaler()

Method Detail

### getOptimalScalingImage

    public 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.

  Parameters:
    `inputImage` - source image
    `startSize` - starting pixel edge size of image
    `endSize` - desired pixel edge size of image
  Returns:
    scaled image

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details