public interface DigitalPicture
Modifier and Type | Method and Description |
---|---|
int |
getBasicPixel(int x,
int y)
get the pixel information as an int
|
java.awt.image.BufferedImage |
getBufferedImage()
get the buffered image
|
java.lang.String |
getFileName()
get the file name that the picture came from
|
int |
getHeight()
get the height of the picture in pixels
|
java.awt.Image |
getImage()
get the image from the picture
|
Pixel |
getPixel(int x,
int y)
get the pixel information as an object
|
java.lang.String |
getTitle()
get the title of the picture
|
int |
getWidth()
get the width of the picture in pixels
|
void |
load(java.awt.Image image)
load the image into the picture
|
boolean |
load(java.lang.String fileName)
load the picture from a file
|
void |
setBasicPixel(int x,
int y,
int rgb)
set the pixel information
|
void |
setTitle(java.lang.String title)
set the title of the picture
|
void |
show()
show the picture
|
java.lang.String getFileName()
java.lang.String getTitle()
void setTitle(java.lang.String title)
int getWidth()
int getHeight()
java.awt.Image getImage()
java.awt.image.BufferedImage getBufferedImage()
int getBasicPixel(int x, int y)
void setBasicPixel(int x, int y, int rgb)
Pixel getPixel(int x, int y)
void load(java.awt.Image image)
boolean load(java.lang.String fileName)
void show()