All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.eou.swingimageregionselector.PixelList

java.lang.Object
   |
   +----com.ibm.eou.swingimageregionselector.PixelList

public class PixelList
extends Object
Object to store an array of RGB pixel values and the dimensions of the image


Constructor Index

 o PixelList()
PixelList constructor
 o PixelList(int[], int, int)
Constructor that initializes the fields

Method Index

 o copyright()
IBM Copyright statement
 o getHeight()
Returns image height
 o getPixelAtPoint(int, int)
Returns the color of the pixel at point (x,y).
 o getPixels()
Returns the array of pixels
 o getWidth()
Returns the width of the image

Constructors

 o PixelList
 public PixelList()
PixelList constructor

 o PixelList
 public PixelList(int pixels[],
                  int width,
                  int height)
Constructor that initializes the fields

Parameters:
pixels - Array of RGB pixel values
width - Width of image
height - Height of image

Methods

 o copyright
 public static String copyright()
IBM Copyright statement

 o getHeight
 public int getHeight()
Returns image height

Returns:
Height of image
 o getPixelAtPoint
 public int getPixelAtPoint(int x,
                            int y)
Returns the color of the pixel at point (x,y). If (x,y) is outside the bounds of the image then 0 is returned

Parameters:
x - x co-ordinate of pixel
y - y co-ordinate of pixel
Returns:
The pixel at (x,y)
 o getPixels
 public int[] getPixels()
Returns the array of pixels

Returns:
Array of pixels
 o getWidth
 public int getWidth()
Returns the width of the image

Returns:
The width of the image

All Packages  Class Hierarchy  This Package  Previous  Next  Index