Mercurial > projects > dwt-win
comparison dwt/graphics/ImageDataLoader.d @ 212:ab60f3309436
reverted the char[] to String and use the an alias.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:12:38 +0200 |
parents | 5f2e72114476 |
children |
comparison
equal
deleted
inserted
replaced
211:ff59aeb96cac | 212:ab60f3309436 |
---|---|
14 | 14 |
15 public import dwt.graphics.ImageData; | 15 public import dwt.graphics.ImageData; |
16 public import dwt.dwthelper.InputStream; | 16 public import dwt.dwthelper.InputStream; |
17 | 17 |
18 import dwt.graphics.ImageLoader; | 18 import dwt.graphics.ImageLoader; |
19 import dwt.dwthelper.utils; | |
19 | 20 |
20 /** | 21 /** |
21 * Internal class that separates ImageData from ImageLoader | 22 * Internal class that separates ImageData from ImageLoader |
22 * to allow removal of ImageLoader from the toolkit. | 23 * to allow removal of ImageLoader from the toolkit. |
23 */ | 24 */ |
25 | 26 |
26 public static ImageData[] load(InputStream stream) { | 27 public static ImageData[] load(InputStream stream) { |
27 return (new ImageLoader()).load(stream); | 28 return (new ImageLoader()).load(stream); |
28 } | 29 } |
29 | 30 |
30 public static ImageData[] load(char[] filename) { | 31 public static ImageData[] load(String filename) { |
31 return (new ImageLoader()).load(filename); | 32 return (new ImageLoader()).load(filename); |
32 } | 33 } |
33 | 34 |
34 } | 35 } |