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
-
PixelList()
- PixelList constructor
-
PixelList(int[], int, int)
- Constructor that initializes the fields
-
copyright()
- IBM Copyright statement
-
getHeight()
- Returns image height
-
getPixelAtPoint(int, int)
- Returns the color of the pixel at point (x,y).
-
getPixels()
- Returns the array of pixels
-
getWidth()
- Returns the width of the image
PixelList
public PixelList()
- PixelList constructor
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
copyright
public static String copyright()
- IBM Copyright statement
getHeight
public int getHeight()
- Returns image height
- Returns:
- Height of image
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)
getPixels
public int[] getPixels()
- Returns the array of pixels
- Returns:
- Array of pixels
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