22cef92b9c5a11f87add61a72f7d57c8373fd536
[org.ibex.core.git] / src / org / xwt / ImageDecoder.java
1 // Copyright 2002 Adam Megacz, see the COPYING file for licensing [GPL] 
2 package org.xwt;
3 import java.io.*;
4
5 /** Interface implemented by classes capable of decoding an image file into an int[] */
6 public interface ImageDecoder {
7     
8     /** returns the width of the image */
9     public abstract int getWidth();
10
11     /** returns the height of the image */
12     public abstract int getHeight();
13
14     /** returns the data of the image, as an array of 32-bit AARRGGBB samples */
15     public abstract int[] getData();
16
17 }