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 import java.lang.all; 16 17 public import org.eclipse.swt.graphics.ImageData; 18 public import java.io.InputStream; 19 20 import org.eclipse.swt.graphics.ImageLoader; 21 22 /** 23 * Internal class that separates ImageData from ImageLoader 24 * to allow removal of ImageLoader from the toolkit. 25 */ 26 class ImageDataLoader { 27 28 public static ImageData[] load(InputStream stream) { 29 return (new ImageLoader()).load(stream); 30 } 31 32 public static ImageData[] load(String filename) { 33 return (new ImageLoader()).load(filename); 34 } 35 36 }