public class SkewImage
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BILINEAR |
static int |
CLAMP |
protected int |
edgeAction |
protected int |
interpolation |
static int |
NEAREST_NEIGHBOUR |
protected java.awt.Rectangle |
originalSpace |
protected java.awt.Rectangle |
transformedSpace |
static int |
WRAP |
static int |
ZERO |
Constructor and Description |
---|
SkewImage(java.awt.image.BufferedImage src) |
Modifier and Type | Method and Description |
---|---|
protected java.awt.image.BufferedImage |
filterPixelsNN(java.awt.image.BufferedImage dst,
int width,
int height,
int[] inPixels,
java.awt.Rectangle transformedSpace) |
float |
getOriginX() |
float |
getOriginY() |
int[] |
getRGB(java.awt.image.BufferedImage image,
int x,
int y,
int width,
int height,
int[] pixels)
A convenience method for getting ARGB pixels from an image.
|
static void |
main(java.lang.String[] args) |
java.awt.image.BufferedImage |
setCorners(float x0,
float y0,
float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
Used to skew an image by updating the corner coordinates.
|
void |
setRGB(java.awt.image.BufferedImage image,
int x,
int y,
int width,
int height,
int[] pixels)
A convenience method for setting ARGB pixels in an image.
|
protected void |
transformInverse(int x,
int y,
float[] out) |
protected void |
transformSpace(java.awt.Rectangle rect) |
public static final int ZERO
public static final int CLAMP
public static final int WRAP
public static final int NEAREST_NEIGHBOUR
public static final int BILINEAR
protected int edgeAction
protected int interpolation
protected java.awt.Rectangle transformedSpace
protected java.awt.Rectangle originalSpace
public java.awt.image.BufferedImage setCorners(float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3)
x0
- y0
- x1
- y1
- x2
- y2
- x3
- y3
- protected void transformSpace(java.awt.Rectangle rect)
public float getOriginX()
public float getOriginY()
protected java.awt.image.BufferedImage filterPixelsNN(java.awt.image.BufferedImage dst, int width, int height, int[] inPixels, java.awt.Rectangle transformedSpace)
protected void transformInverse(int x, int y, float[] out)
public int[] getRGB(java.awt.image.BufferedImage image, int x, int y, int width, int height, int[] pixels)
public void setRGB(java.awt.image.BufferedImage image, int x, int y, int width, int height, int[] pixels)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.