Skip navigation links
A B C D E F G H I L M N O P R S T U W 

A

addMessage(String, int, int) - Method in class SimplePicture
Method to draw a message as a string on the buffered image
averageColors(ArrayList<Pixel>, int) - Static method in class Picture
Averages the chosen color for all the pixels in an ArrayList.

B

blueScreen(Picture, int, int) - Method in class Picture
Method to do chromakey assuming a blue background

C

chromakey(Picture, Color, int, int, int) - Method in class Picture
Method to do chromakey using an input color for the background and a point for the upper left corner of where to copy
colorDistance(Color) - Method in class Pixel
Method to get the distance between this pixel's color and the passed color
colorDistance(Color, Color) - Static method in class Pixel
Method to compute the color distances between two color objects
compose(Picture, int, int) - Method in class Picture
Method to compose (copy) this picture onto a target picture at a given point.
copy() - Method in class Picture
A method create a copy of the current picture and return it
copyPicture(SimplePicture) - Method in class SimplePicture
Method that will copy all of the passed source picture into the current picture object
correctValue(int) - Static method in class Pixel
Method to correct a color value to be within 0 and 255
createGraphics() - Method in class SimplePicture
Method to get a Graphics2D object for this picture which can be used to do 2D drawing on the picture

D

decreaseRed() - Method in class Picture
Method to decrease the red by half in the current picture
decreaseRed(double) - Method in class Picture
Method to decrease the red by an amount
drawString(String, int, int) - Method in class SimplePicture
Method to draw a string at the given location on the picture

E

explore() - Method in class SimplePicture
Method to open a picture explorer on a copy of this simple picture

F

FileChooser - Class in <Unnamed>
A class to make working with a file chooser easier for students.
FileChooser() - Constructor for class FileChooser
 
flip() - Method in class Picture
Method to flip a picture

G

getAlpha() - Method in class Pixel
Method to get the amount of alpha (transparency) at this pixel.
getAverage() - Method in class Pixel
Method to get the average of the colors of this pixel
getBasicPixel(int, int) - Method in class SimplePicture
Method to return the pixel value as an int for the given x and y location
getBlue() - Method in class Pixel
Method to get the amount of blue at this pixel.
getBlue(int) - Static method in class Pixel
Method to get the blue value from a pixel represented as an int
getBufferedImage() - Method in class SimplePicture
Method to get the buffered image
getColor(Pixel, int) - Static method in class Picture
Gets the value of the color corresponding to colorNum.
getColor() - Method in class Pixel
Method to get a color object that represents the color at this pixel.
getExtension() - Method in class SimplePicture
Method to get the extension for this picture
getFileName() - Method in class SimplePicture
Method to get the file name associated with the picture
getGraphics() - Method in class SimplePicture
Method to get a graphics object for this picture to use to draw on
getGreen() - Method in class Pixel
Method to get the amount of green at this pixel.
getGreen(int) - Static method in class Pixel
Method to get the green value from a pixel represented as an int
getHeight() - Method in class SimplePicture
Method to get the height of the picture in pixels
getImage() - Method in class SimplePicture
Method to get an image from the picture
getMediaDirectory() - Static method in class FileChooser
Method to get the directory for the media
getMediaPath(String) - Static method in class FileChooser
Method to get the full path for the passed file name
getMediaPath(String) - Static method in class SimplePicture
Method to get the directory for the media
getMostCommonColorInRange(int) - Method in class Pixel
Method to return the most common color in the given range from the current pixel in the picture or just return this color.
getPictureFrame() - Method in class SimplePicture
Method to get the picture frame for the picture
getPictureWithHeight(int) - Method in class SimplePicture
Method to create a new picture of the passed height.
getPictureWithWidth(int) - Method in class SimplePicture
Method to create a new picture of the passed width.
getPixel(int, int) - Method in class SimplePicture
Method to get a pixel object for the given x and y location
getPixels() - Method in class SimplePicture
Method to get a one-dimensional array of Pixels for this simple picture
getRed() - Method in class Pixel
Method to get the amount of red at this pixel.
getRed(int) - Static method in class Pixel
Method to get the red value from a pixel represented as an int
getTitle() - Method in class SimplePicture
Method to get the title of the picture
getTransformEnclosingRect(AffineTransform) - Method in class SimplePicture
Method to get the coordinates of the enclosing rectangle after this transformation is applied to the current picture
getWidth() - Method in class SimplePicture
Method to get the width of the picture in pixels
getX() - Method in class Pixel
Method to get the x location of this pixel.
getY() - Method in class Pixel
Method to get the y location of this pixel.
grayscaleWithLuminance() - Method in class Picture
Method to change the picture to gray scale with luminance

H

hide() - Method in class SimplePicture
Method to hide the picture

I

increaseRed() - Method in class Picture
Method to increase the red in a picture.

L

load(Image) - Method in class SimplePicture
Method to load the buffered image with the passed image
load(String) - Method in class SimplePicture
Method to write the contents of the picture to a file with the passed name without throwing errors
loadImage(String) - Method in class SimplePicture
Method to load the picture from the passed file name this just calls load(fileName) and is for name compatibility
loadOrFail(String) - Method in class SimplePicture
Method to load the picture from the passed file name
loadPictureAndShowIt(String) - Method in class SimplePicture
Method to load a picture from a file name and show it in a picture frame

M

main(String[]) - Static method in class Picture
 

N

negate() - Method in class Picture
Method to negate a picture

O

oilPaint(int) - Method in class Picture
Method to do an oil paint effect on a picture

P

pickADirectory() - Static method in class FileChooser
Method to let the user pick a directory and return the full path name as a string.
pickAFile() - Static method in class FileChooser
Method to let the user pick a file and return the full file name as a string.
pickAndShow() - Static method in class Picture
Class method to let the user pick a file name and then create the picture and show it
pickMediaPath() - Static method in class FileChooser
Method to pick a media path using the file chooser and set it
pickPath(JFileChooser) - Static method in class FileChooser
Method to pick an item using the file chooser
Picture - Class in <Unnamed>
A class that represents a picture.
Picture() - Constructor for class Picture
Constructor that takes no arguments
Picture(String) - Constructor for class Picture
Constructor that takes a file name and creates the picture
Picture(int, int) - Constructor for class Picture
Constructor that takes the width and height
Picture(Picture) - Constructor for class Picture
Constructor that takes a picture and creates a copy of that picture
Picture(BufferedImage) - Constructor for class Picture
Constructor that takes a buffered image
Pixel - Class in <Unnamed>
Class that references a pixel in a picture.
Pixel(DigitalPicture, int, int) - Constructor for class Pixel
A constructor that take the x and y location for the pixel and the picture the pixel is coming from

R

reduceTo8() - Method in class Picture
Reduces the number of colors to 8 by picking two values for red, two for green, and two for blue.
repaint() - Method in class SimplePicture
Method to force the picture to redraw itself.

S

scale(double) - Method in class Picture
Method to scale the picture by a factor, and return the result
scale(double, double) - Method in class SimplePicture
Method to create a new picture by scaling the current picture by the given x and y factors
setAllPixelsToAColor(Color) - Method in class SimplePicture
Method to set the color in the picture to the passed color
setAlpha(int) - Method in class Pixel
Method to set the alpha (transparency) to a new alpha value
setBasicPixel(int, int, int) - Method in class SimplePicture
Method to set the value of a pixel in the picture from an int
setBlue(int) - Method in class Pixel
Method to set the blue to a new blue value
setColor(Pixel, int, int) - Static method in class Picture
Sets the value of the color corresponding to colorNum to newValue.
setColor(Color) - Method in class Pixel
Method to set the pixel color to the passed in color object.
setFileName(String) - Method in class SimplePicture
Method to set the file name
setGreen(int) - Method in class Pixel
Method to set the green to a new green value
setMediaPath(String) - Static method in class FileChooser
Method to set the media path by setting the directory to use
setMediaPath(String) - Static method in class SimplePicture
Method to set the media path by setting the directory to use
setPictureFrame(PictureFrame) - Method in class SimplePicture
Method to set the picture frame for this picture
setRed(int) - Method in class Pixel
Method to set the red to a new red value
setTitle(String) - Method in class SimplePicture
Method to set the title for the picture
setVisible(boolean) - Method in class SimplePicture
Method to make this picture visible or not
show() - Method in class SimplePicture
Method to show the picture in a picture frame
showNamed(String) - Static method in class Picture
Class method to create a picture object from the passed file name and then show it
SimplePicture - Class in <Unnamed>
A class that represents a simple picture.
SimplePicture() - Constructor for class SimplePicture
A Constructor that takes no arguments.
SimplePicture(String) - Constructor for class SimplePicture
A Constructor that takes a file name and uses the file to create a picture
SimplePicture(int, int) - Constructor for class SimplePicture
A constructor that takes the width and height desired for a picture and creates a buffered image of that size.
SimplePicture(int, int, Color) - Constructor for class SimplePicture
A constructor that takes the width and height desired for a picture and creates a buffered image of that size.
SimplePicture(SimplePicture) - Constructor for class SimplePicture
A Constructor that takes a picture to copy information from
SimplePicture(BufferedImage) - Constructor for class SimplePicture
A constructor that takes a buffered image

T

toString() - Method in class Picture
Method to return a string with information about this picture.
toString() - Method in class Pixel
Method to return a string with information about this pixel
toString() - Method in class SimplePicture
Method to return a string with information about this picture

U

updatePicture(int, int, int, int) - Method in class Pixel
Method to update the picture based on the passed color values for this pixel

W

write(String) - Method in class SimplePicture
Method to write the contents of the picture to a file with the passed name without throwing errors
writeOrFail(String) - Method in class SimplePicture
Method to write the contents of the picture to a file with the passed name
A B C D E F G H I L M N O P R S T U W 
Skip navigation links