Nathan Sprague
Dotted arrows represent a dependency.
Diamond represents aggregation.
Modify the Image
class by removing getPixel
/setPixel
and replacing them with methods like:
getRed(int x, int y)
getGreen(int x, int y)
getBlue(int x, int y)
setPixelColor(int x, int y, int red, int green, int blue)
Image
class will still use Pixel
objects internally)Pixel
and ImageTransforms
Image
and Pixel
Image
Image
class and make them non-static:
Image gray = colorImage.convertToGrayscale();
Image
Load/Save methods are only used by the GUI. Let's move them into MimpAPP.Image
Load/Save methods are a static. Let's move them into ImageTransforms
with the other static methods.