comparison dwt/internal/image/FileFormat.d @ 259:c0d810de7093

Update SWT 3.4M7 to 3.4
author Frank Benoit <benoit@tionex.de>
date Sun, 29 Jun 2008 14:33:38 +0200
parents ce446666f5a2
children
comparison
equal deleted inserted replaced
257:cc1d3de0e80b 259:c0d810de7093
80 * return the device independent image array represented by the stream. 80 * return the device independent image array represented by the stream.
81 */ 81 */
82 public static ImageData[] load(InputStream istr, ImageLoader loader) { 82 public static ImageData[] load(InputStream istr, ImageLoader loader) {
83 FileFormat fileFormat = null; 83 FileFormat fileFormat = null;
84 LEDataInputStream stream = new LEDataInputStream(istr); 84 LEDataInputStream stream = new LEDataInputStream(istr);
85 bool isSupported = false; 85 bool isSupported = false;
86 foreach( TFormat; TFormats ){ 86 foreach( TFormat; TFormats ){
87 try{ 87 try{
88 fileFormat = new TFormat(); 88 fileFormat = new TFormat();
89 if (fileFormat.isFileFormat(stream)) { 89 if (fileFormat.isFileFormat(stream)) {
90 isSupported = true; 90 isSupported = true;