Mercurial > projects > dwt-linux
comparison dwt/internal/image/FileFormat.d @ 240:ce446666f5a2
Update to SWT 3.4M7
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 12 May 2008 19:13:01 +0200 |
parents | 380bad9f6852 |
children | c0d810de7093 |
comparison
equal
deleted
inserted
replaced
239:06a1f6829310 | 240:ce446666f5a2 |
---|---|
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; |