Mercurial > projects > dwt-win
comparison dwt/internal/image/FileFormat.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 | 41dbc4d9faab |
children | 36f5cb12e1a2 |
comparison
equal
deleted
inserted
replaced
211:ff59aeb96cac | 212:ab60f3309436 |
---|---|
30 import dwt.internal.image.JPEGFileFormat; | 30 import dwt.internal.image.JPEGFileFormat; |
31 import dwt.internal.image.PNGFileFormat; | 31 import dwt.internal.image.PNGFileFormat; |
32 | 32 |
33 import tango.core.Exception; | 33 import tango.core.Exception; |
34 import tango.core.Tuple; | 34 import tango.core.Tuple; |
35 import dwt.dwthelper.utils; | |
35 | 36 |
36 /** | 37 /** |
37 * Abstract factory class for loading/unloading images from files or streams | 38 * Abstract factory class for loading/unloading images from files or streams |
38 * in various image file formats. | 39 * in various image file formats. |
39 * | 40 * |
40 */ | 41 */ |
41 public abstract class FileFormat { | 42 public abstract class FileFormat { |
42 static const char[] FORMAT_PACKAGE = "dwt.internal.image"; //$NON-NLS-1$ | 43 static const String FORMAT_PACKAGE = "dwt.internal.image"; //$NON-NLS-1$ |
43 static const char[] FORMAT_SUFFIX = "FileFormat"; //$NON-NLS-1$ | 44 static const String FORMAT_SUFFIX = "FileFormat"; //$NON-NLS-1$ |
44 static const char[][] FORMATS = [ "WinBMP"[], "WinBMP", "GIF", "WinICO", "JPEG", "PNG", "TIFF", "OS2BMP" ]; //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$//$NON-NLS-5$ //$NON-NLS-6$//$NON-NLS-7$//$NON-NLS-8$ | 45 static const String[] FORMATS = [ "WinBMP"[], "WinBMP", "GIF", "WinICO", "JPEG", "PNG", "TIFF", "OS2BMP" ]; //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$//$NON-NLS-5$ //$NON-NLS-6$//$NON-NLS-7$//$NON-NLS-8$ |
45 alias Tuple!( WinBMPFileFormat, WinBMPFileFormat, GIFFileFormat, WinICOFileFormat, JPEGFileFormat, PNGFileFormat, TIFFFileFormat, OS2BMPFileFormat ) TFormats; | 46 alias Tuple!( WinBMPFileFormat, WinBMPFileFormat, GIFFileFormat, WinICOFileFormat, JPEGFileFormat, PNGFileFormat, TIFFFileFormat, OS2BMPFileFormat ) TFormats; |
46 LEDataInputStream inputStream; | 47 LEDataInputStream inputStream; |
47 LEDataOutputStream outputStream; | 48 LEDataOutputStream outputStream; |
48 ImageLoader loader; | 49 ImageLoader loader; |
49 int compression; | 50 int compression; |