Interface DigitalPicture

All Known Implementing Classes:
Picture, SimplePicture

public interface DigitalPicture

Interface to describe a digital picture. A digital picture can have an associated file name. It can have a title. It has pixels associated with it and you can get and set the pixels. You can get an Image from a picture or a BufferedImage. You can load it from a file name or image. You can show a picture. You can explore a picture. You can create a new image for it.

Author:
Barb Ericson ericson@cc.gatech.edu

Method Summary
 void explore()
           
 int getBasicPixel(int x, int y)
           
 BufferedImage getBufferedImage()
           
 String getFileName()
           
 int getHeight()
           
 Image getImage()
           
 Pixel getPixel(int x, int y)
           
 Pixel[] getPixels()
           
 Pixel[][] getPixels2D()
           
 String getTitle()
           
 int getWidth()
           
 void load(Image image)
           
 boolean load(String fileName)
           
 void setBasicPixel(int x, int y, int rgb)
           
 void setTitle(String title)
           
 void show()
           
 boolean write(String fileName)
           
 

Method Detail

explore

void explore()

getBasicPixel

int getBasicPixel(int x,
                  int y)

getBufferedImage

BufferedImage getBufferedImage()

getFileName

String getFileName()

getHeight

int getHeight()

getImage

Image getImage()

getPixel

Pixel getPixel(int x,
               int y)

getPixels

Pixel[] getPixels()

getPixels2D

Pixel[][] getPixels2D()

getTitle

String getTitle()

getWidth

int getWidth()

load

void load(Image image)

load

boolean load(String fileName)

setBasicPixel

void setBasicPixel(int x,
                   int y,
                   int rgb)

setTitle

void setTitle(String title)

show

void show()

write

boolean write(String fileName)