|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.ObjectImage
ImagePicture - A picture created from an image.
Picture,
PictureColor,
PictureUtil| Constructor Summary | |
Image(java.lang.String imageLocation)
Constructs a new picture from image at specified location |
|
Image(java.lang.String imageLocation,
PictureColor backgroundColor)
Constructs a new picture from image at specified location with a given background color |
|
| Method Summary | |
PictureColor |
getBackgroundColor()
Specifies the background color of the picture. |
PictureColor |
getColor(int x,
int y)
This specifies the content of a picture by returning the color of the picture at each pixel (i.e., position). |
int |
getHeight()
|
int |
getWidth()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Image(java.lang.String imageLocation)
imageLocation - Can be URL or local filename of GIF, JPG, or PNG image
public Image(java.lang.String imageLocation,
PictureColor backgroundColor)
imageLocation - Can be URL or local filename of GIF, JPG, or PNG imagebackgroundColor - Specifies color of image outside of input image bounds| Method Detail |
public PictureColor getColor(int x,
int y)
Picture
getColor in interface Picturex - The column within the picturey - The row within the picture
Picture.getColor(int, int)public int getWidth()
getWidth in interface PicturePicture.getWidth()public int getHeight()
getHeight in interface PicturePicture.getHeight()public PictureColor getBackgroundColor()
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||