File tree 1 file changed +27
-0
lines changed
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments