comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/image/PngEncoder.d @ 6:f36c67707cb3

Removed import to tango.core.Exception
author Frank Benoit <benoit@tionex.de>
date Thu, 05 Mar 2009 00:18:47 +0100
parents 6dd524f61e62
children 536e43f63c81
comparison
equal deleted inserted replaced
5:daf5407a1394 6:f36c67707cb3
10 * Port to the D programming language: 10 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de> 11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/ 12 *******************************************************************************/
13 module org.eclipse.swt.internal.image.PngEncoder; 13 module org.eclipse.swt.internal.image.PngEncoder;
14 14
15 import java.lang.all;
16
15 import org.eclipse.swt.internal.image.LEDataOutputStream; 17 import org.eclipse.swt.internal.image.LEDataOutputStream;
16 import org.eclipse.swt.internal.image.PngDeflater; 18 import org.eclipse.swt.internal.image.PngDeflater;
17 import java.io.ByteArrayOutputStream; 19 import java.io.ByteArrayOutputStream;
18 import java.io.OutputStream; 20 import java.io.OutputStream;
19 import org.eclipse.swt.SWT; 21 import org.eclipse.swt.SWT;
21 import org.eclipse.swt.graphics.ImageLoader; 23 import org.eclipse.swt.graphics.ImageLoader;
22 import org.eclipse.swt.graphics.RGB; 24 import org.eclipse.swt.graphics.RGB;
23 import org.eclipse.swt.internal.Compatibility; 25 import org.eclipse.swt.internal.Compatibility;
24 import org.eclipse.swt.internal.image.PngChunk; 26 import org.eclipse.swt.internal.image.PngChunk;
25 27
26 import tango.core.Exception;
27 28
28 final class PngEncoder { 29 final class PngEncoder {
29 30
30 static const byte SIGNATURE[] = [cast(byte) '\211', cast(byte) 'P', cast(byte) 'N', cast(byte) 'G', cast(byte) '\r', cast(byte) '\n', cast(byte) '\032', cast(byte) '\n']; 31 static const byte SIGNATURE[] = [cast(byte) '\211', cast(byte) 'P', cast(byte) 'N', cast(byte) 'G', cast(byte) '\r', cast(byte) '\n', cast(byte) '\032', cast(byte) '\n'];
31 static const byte TAG_IHDR[] = [cast(byte) 'I', cast(byte) 'H', cast(byte) 'D', cast(byte) 'R']; 32 static const byte TAG_IHDR[] = [cast(byte) 'I', cast(byte) 'H', cast(byte) 'D', cast(byte) 'R'];