6
|
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 }
|