Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/graphics/ImageDataLoader.d @ 0:6dd524f61e62
add dwt win and basic java stuff
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 02 Mar 2009 14:44:16 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:6dd524f61e62 |
---|---|
1 /******************************************************************************* | |
2 * Copyright (c) 2000, 2006 IBM Corporation and others. | |
3 * All rights reserved. This program and the accompanying materials | |
4 * are made available under the terms of the Eclipse Public License v1.0 | |
5 * which accompanies this distribution, and is available at | |
6 * http://www.eclipse.org/legal/epl-v10.html | |
7 * | |
8 * Contributors: | |
9 * IBM Corporation - initial API and implementation | |
10 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | |
13 module org.eclipse.swt.graphics.ImageDataLoader; | |
14 | |
15 public import org.eclipse.swt.graphics.ImageData; | |
16 public import java.io.InputStream; | |
17 | |
18 import org.eclipse.swt.graphics.ImageLoader; | |
19 import java.lang.all; | |
20 | |
21 /** | |
22 * Internal class that separates ImageData from ImageLoader | |
23 * to allow removal of ImageLoader from the toolkit. | |
24 */ | |
25 class ImageDataLoader { | |
26 | |
27 public static ImageData[] load(InputStream stream) { | |
28 return (new ImageLoader()).load(stream); | |
29 } | |
30 | |
31 public static ImageData[] load(String filename) { | |
32 return (new ImageLoader()).load(filename); | |
33 } | |
34 | |
35 } |