/Users/lyon/j4p/src/face/ImageFileFormat.java
|
1 package face;
2
3 interface ImageFileFormat {
4 /**
5 * Get the height of the PPM image.
6 *
7 * @return the height of the image.
8 */
9 public int getHeight();
10
11 /**
12 * Get the width of the PPM image.
13 *
14 * @return the width of the image.
15 */
16 public int getWidth();
17
18 /**
19 * Get the data as byte array. Data is of any type that
20 * has been read from the file (usually 8bit RGB)
21 *
22 * @return The data of the image.
23 */
24 public byte[] getBytes();
25
26 /**
27 * Get the data as double array. Data is of any type that
28 * has been read from the file (usually 8bit RGB put into an 64bit double)
29 *
30 * @return The data of the image.
31 */
32 public double[] getDouble();
33 }
34