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
implements CommonInterface
The imageRoutines class contains several useful class fields and methods for image processing. It cannot be instantiated.


Constructor Index

 o imageRoutines()

Method Index

 o GrabPixels(Image, int, int, int, int, int, int)
Takes an image and returns the data of the image in an int array.
 o Interpolate(int[], int, int, int, int)
Interpolate an image.

Constructors

 o imageRoutines
 public imageRoutines()

Methods

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

 o 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