public final class ImageWarp extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ImageWarp.GridTransform
Wrapper that optimizes a given
ImageWarp.PointTransform. |
static class |
ImageWarp.Interpolation
Interpolation method.
|
static interface |
ImageWarp.PointTransform
Transformation that translates the pixel coordinates.
|
| Modifier | Constructor and Description |
|---|---|
private |
ImageWarp() |
| Modifier and Type | Method and Description |
|---|---|
private static int |
getColor(int x,
int y,
java.awt.image.BufferedImage img) |
static java.awt.image.BufferedImage |
warp(java.awt.image.BufferedImage srcImg,
java.awt.Dimension targetDim,
ImageWarp.PointTransform invTransform,
ImageWarp.Interpolation interpolation)
Warp an image.
|
private ImageWarp()
public static java.awt.image.BufferedImage warp(java.awt.image.BufferedImage srcImg, java.awt.Dimension targetDim, ImageWarp.PointTransform invTransform, ImageWarp.Interpolation interpolation)
srcImg - the original imagetargetDim - dimension of the target imageinvTransform - inverse transformation (translates pixel coordinates
of the target image to pixel coordinates of the original image)interpolation - the interpolation methodprivate static int getColor(int x, int y, java.awt.image.BufferedImage img)