Pixel
Pixel
/*
import org.code.theater.*;
import org.code.media.*;
/*
* Represents an image that can be modified with filters and effects
*/
/*public class ImagePlus extends Image {
/*
* Constructor to create an ImagePlus object
* with a specified file name
*/
/* public ImagePlus(String filename) {
super(filename); // calls the Image class constructor
// Initialize the pixels array by getting the pixels from the image
pixels = getPixels();
}
/*
* Constructor to create an ImagePlus object
* with a specified width and height
*/
/* public ImagePlus(int width, int height) {
super(width, height); // calls the Image class constructor
// Initialize the pixels array by getting the pixels from the image
pixels = getPixels();
}
/*
* Returns the pixels in the image as a 2D array of Pixel objects
*/
/* public Pixel[][] getPixels() {
// Level 2
// TO DO #1: Create and return a 2D array of Pixel objects that
// contains the pixels from the image.
return tempPixels;
}
currentPixel.setRed(0);
}
}
}
currentPixel.setBlue(0);
}
}
}
currentPixel.setGreen(0);
}
}
}
currentPixel.setRed(0);
currentPixel.setGreen(0);
}
}
}
}
*/