DigitalPicturepublic class Picture extends SimplePicture
| Constructor | Description |
|---|---|
Picture() |
Constructor that takes no arguments
|
Picture(int height,
int width) |
Constructor that takes the width and height
|
Picture(java.awt.image.BufferedImage image) |
Constructor that takes a buffered image
|
Picture(java.lang.String fileName) |
Constructor that takes a file name and creates the picture
|
Picture(Picture copyPicture) |
Constructor that takes a picture and creates a
copy of that picture
|
| Modifier and Type | Method | Description |
|---|---|---|
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(java.lang.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
|
java.lang.String |
toString() |
Method to return a string with information about this picture.
|
void |
zeroBlue() |
Method to set the blue to 0
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddMessage, copyPicture, createGraphics, drawString, explore, getBasicPixel, getBufferedImage, getExtension, getFileName, getGraphics, getHeight, getImage, getMediaPath, getPictureFrame, getPictureWithHeight, getPictureWithWidth, getPixel, getPixels, getPixels2D, getTitle, getTransformEnclosingRect, getTranslationEnclosingRect, getWidth, hide, load, load, loadImage, loadOrFail, loadPictureAndShowIt, repaint, scale, setAllPixelsToAColor, setBasicPixel, setFileName, setPictureFrame, setTitle, setVisible, show, write, writeOrFailpublic Picture()
public Picture(java.lang.String fileName)
fileName - the name of the file to create the picture frompublic 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(java.awt.image.BufferedImage image)
image - the buffered image to usepublic java.lang.String toString()
toString in class SimplePicturepublic void zeroBlue()
public void mirrorVertical()
public void mirrorTemple()
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(java.lang.String[] args)