Package ch.epfl.cs107.play.window
Interface Image
- All Known Implementing Classes:
SwingImage
public interface Image
Context-agnostic immutable image.
-
Method Summary
-
Method Details
-
getWidth
int getWidth()- Returns:
- (int): width, in pixels
-
getHeight
int getHeight()- Returns:
- (int): height, in pixels
-
getRGB
int getRGB(int r, int c) Color getter of the pixel at the given row and column- Parameters:
r- (int): given rowc- (int): given column- Returns:
- (int): RGB color of the pixel at row r and column c as a int value
-