Interface DigitalPicture
- All Known Implementing Classes:
- SimplePicture
- public interface DigitalPicture
Interface to describe a digital picture. A digital picture can have a
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
create a new image for it.
- Author:
- Barbara Ericson
getFileName
public String getFileName()
getTitle
public String getTitle()
setTitle
public void setTitle(String title)
getWidth
public int getWidth()
getHeight
public int getHeight()
getImage
public Image getImage()
getBufferedImage
public BufferedImage getBufferedImage()
getBasicPixel
public int getBasicPixel(int x,
int y)
setBasicPixel
public void setBasicPixel(int x,
int y,
int rgb)
getPixel
public Pixel getPixel(int x,
int y)
load
public void load(Image image)
load
public boolean load(String fileName)
show
public void show()