|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.ObjectCombineLeftRight
LeftRight - Combines two pictures into a single larger picture with one input picture on the left and one input picture on the right
| Constructor Summary | |
CombineLeftRight(Picture leftPicture,
Picture rightPicture)
Constructs a new picture combining two input pictures. |
|
| Method Summary | |
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 CombineLeftRight(Picture leftPicture,
Picture rightPicture)
leftPicture - rightPicture - | Method Detail |
public PictureColor getColor(int x,
int y)
Picture
getColor in interface Picturex - The column within the picturey - The row within the picture
public int getWidth()
getWidth in interface Picturepublic int getHeight()
getHeight in interface Picture
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||