Mercurial > projects > dwt-linux
comparison dwt/graphics/ImageDataLoader.d @ 9:ad2b69216039
moved org.eclipse.swt to dwt
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 05 Jan 2008 17:39:49 +0100 |
parents | org/eclipse/swt/graphics/ImageDataLoader.d@640e6456a9ff |
children | 63c023465156 |
comparison
equal
deleted
inserted
replaced
8:a1f832ca7d17 | 9:ad2b69216039 |
---|---|
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 *******************************************************************************/ | |
11 module org.eclipse.swt.graphics.ImageDataLoader; | |
12 | |
13 public import org.eclipse.swt.graphics.ImageData; | |
14 | |
15 import org.eclipse.swt.graphics.ImageLoader; | |
16 import tango.io.model.IConduit; | |
17 | |
18 /** | |
19 * Internal class that separates ImageData from ImageLoader | |
20 * to allow removal of ImageLoader from the toolkit. | |
21 */ | |
22 class ImageDataLoader { | |
23 | |
24 public static ImageData[] load(InputStream stream) { | |
25 return (new ImageLoader()).load(stream); | |
26 } | |
27 | |
28 public static ImageData[] load(char[] filename) { | |
29 return (new ImageLoader()).load(filename); | |
30 } | |
31 | |
32 } |