Skip to content

Commit 824e0ba

Browse files
committed
Created the ImageProcess interface and made a header for its "process" method
1 parent 3a82136 commit 824e0ba

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

ImageProcess.java

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/**
2+
* filename: ImageProcess.java
3+
*
4+
* @author Christopher Sasarak
5+
*/
6+
7+
import java.awt.image.RenderedImage;
8+
9+
/**
10+
* @class ImageProcess An interface defining a process method for subclasses to
11+
* use on an image. This is part of a composite pattern which will allow the user
12+
* to add different processes in sequence to a list, and then execute them one-by-one,
13+
* or use the classes for a one-off operation.
14+
15+
*
16+
*/
17+
public interface ImageProcess{
18+
19+
/**
20+
* This method will run an arbitrary process on a RenderedImage and then
21+
* return the result.
22+
*
23+
* @param img The RenderedImage to do some operation on
24+
* @return RenderedImage The processed img parameter
25+
*/
26+
public RenderedImage process(RenderedImage img);
27+
}

0 commit comments

Comments
 (0)