cynosurex.image
Class imageRoutines

java.lang.Object
  extended by cynosurex.image.imageRoutines
All Implemented Interfaces:
cynosurex.internal.AuthorCommon, cynosurex.internal.CommonInterface, cynosurex.internal.CompanyCommon

public final class imageRoutines
extends java.lang.Object
implements cynosurex.internal.CommonInterface

The imageRoutines class contains several useful class fields and methods for image processing. It cannot be instantiated.

Version:
1.0, 7/29/1997
Author:
Chieh Cheng

Field Summary
 
Fields inherited from interface cynosurex.internal.CommonInterface
copyright, copyrightYears, notice, program, version
 
Fields inherited from interface cynosurex.internal.AuthorCommon
author, copyrightSymbol, noticeMsg, rights
 
Fields inherited from interface cynosurex.internal.CompanyCommon
company, email, website
 
Constructor Summary
imageRoutines()
           
 
Method Summary
static int[] GrabPixels(java.awt.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.
static int[] Interpolate(int[] pix, int width, int height, int newWidth, int newHeight)
          Interpolate an image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

imageRoutines

public imageRoutines()
Method Detail

GrabPixels

public static int[] GrabPixels(java.awt.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.