Interface Image

All Known Implementing Classes:
SwingImage

public interface Image
Context-agnostic immutable image.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    int
    getRGB(int r, int c)
    Color getter of the pixel at the given row and column
    int
     
  • 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 row
      c - (int): given column
      Returns:
      (int): RGB color of the pixel at row r and column c as a int value