org.deegree.model.gridprocessing
Class ImgResize
java.lang.Object
  
org.deegree.model.gridprocessing.ImgResize
public class ImgResize
- extends Object
 
- Version:
 
  - $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Thu, 18 Jun 2009) $
 
- Author:
 
  - Andreas Poth, last edited by: $Author: mschneider $
 
| 
Constructor Summary | 
ImgResize(float[][] data,
                   int newWidth,
                   int newHeight)
 
            | 
 
| 
Method Summary | 
 float[][] | 
rectStretch()
 
          RectStretch enlarges or diminishes a source rectangle of a bitmap to a destination rectangle. | 
 float[][] | 
simpleStretch()
 
            | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ImgResize
public ImgResize(float[][] data,
                 int newWidth,
                 int newHeight)
rectStretch
public float[][] rectStretch()
- RectStretch enlarges or diminishes a source rectangle of a bitmap to a destination rectangle.
 The source rectangle is selected by the two points (xs1,ys1) and (xs2,ys2), and the
 destination rectangle by (xd1,yd1) and (xd2,yd2). Since readability of source-code is wanted,
 some optimizations have been left out for the reader: It�s possible to read one line at a
 time, by first stretching in x-direction and then stretching that bitmap in y-direction.
 Entry: xs1,ys1 - first point of source rectangle xs2,ys2 - second point of source rectangle
 xd1,yd1 - first point of destination rectangle xd2,yd2 - second point of destination
 rectangle
 
 
simpleStretch
public float[][] simpleStretch()
 
                an open source project founded by lat/lon, Bonn, Germany.
                    For more information visit: http://www.deegree.org