Interface Picture

All Known Implementing Classes:
CombineLeftRight, CombineTopBottom, Double, FlipLeftRight, Green, Image, RedBlackSquare, RedSquare, Stripes

public interface Picture

Picture - interface to specify the content of a picture.

Author:
Ben Bederson, Bill Pugh Copyright (C) 2003 University of Maryland
See Also:
PictureColor, Image, PictureUtil

Method Summary
 PictureColor getColor(int x, int y)
          This specifies the content of a picture by returning the color of the picture at each pixel (i.e., position).
 int getHeight()
           
 int getWidth()
           
 

Method Detail

getColor

public PictureColor getColor(int x,
                             int y)
This specifies the content of a picture by returning the color of the picture at each pixel (i.e., position).

Parameters:
x - The column within the picture
y - The row within the picture
Returns:
The color of the picture at the specified location

getWidth

public int getWidth()

getHeight

public int getHeight()