Class cynosurex.image.imageRoutines
All Packages Class Hierarchy This Package Previous Next Index
Class cynosurex.image.imageRoutines
java.lang.Object
|
+----cynosurex.image.imageRoutines
- public final class imageRoutines
- extends Object
The imageRoutines
class contains several useful class fields
and methods for image processing. It cannot be instantiated.
-
imageRoutines()
-
-
GrabPixels(Image, int, int, int, int, int, int)
- Takes an image and returns the data of the image in an int array.
-
Interpolate(int[], int, int, int, int)
- Interpolate an image.
imageRoutines
public imageRoutines()
GrabPixels
public static int[] GrabPixels(Image image,
int x,
int y,
int width,
int height,
int off,
int scansize)
- Takes an image and returns the data of the image in an int array.
Interpolate
public static int[] Interpolate(int pix[],
int width,
int height,
int newWidth,
int newHeight)
- Interpolate an image. Interpolation is a process to scale an
image into different sizes.
- Parameters:
- pix - a structure containing the pixel data.
- width - the width of the image.
- height - the height of the image.
- newWidth - the width of the image to scale to.
- newHeight - the height of the image to scale to.
All Packages Class Hierarchy This Package Previous Next Index