|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.ObjectSimplePicture
Picture
public class Picture
A class that represents a picture. This class inherits from SimplePicture and allows the student to add functionality to the Picture class.
| Constructor Summary | |
|---|---|
Picture()
Constructor that takes no arguments |
|
Picture(BufferedImage image)
Constructor that takes a buffered image |
|
Picture(int height,
int width)
Constructor that takes the width and height |
|
Picture(Picture copyPicture)
Constructor that takes a picture and creates a copy of that picture |
|
Picture(String fileName)
Constructor that takes a file name and creates the picture |
|
| Method Summary | |
|---|---|
void |
copy(Picture fromPic,
int startRow,
int startCol)
copy from the passed fromPic to the specified startRow and startCol in the current picture |
void |
createCollage()
Method to create a collage of several pictures |
void |
edgeDetection(int edgeDist)
Method to show large changes in color |
static void |
main(String[] args)
|
void |
mirrorTemple()
Mirror just part of a picture of a temple |
void |
mirrorVertical()
Method that mirrors the picture around a vertical mirror in the center of the picture from left to right |
String |
toString()
Method to return a string with information about this picture. |
void |
zeroBlue()
Method to set the blue to 0 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Picture()
public Picture(BufferedImage image)
image - the buffered image to use
public Picture(int height,
int width)
height - the height of the desired picturewidth - the width of the desired picturepublic Picture(Picture copyPicture)
copyPicture - the picture to copypublic Picture(String fileName)
fileName - the name of the file to create the picture from| Method Detail |
|---|
public void copy(Picture fromPic,
int startRow,
int startCol)
fromPic - the picture to copy fromstartRow - the start row to copy tostartCol - the start col to copy topublic void createCollage()
public void edgeDetection(int edgeDist)
edgeDist - the distance for finding edgespublic static void main(String[] args)
public void mirrorTemple()
public void mirrorVertical()
public String toString()
toString in class SimplePicturepublic void zeroBlue()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||