|
Revision 212:ab60f3309436, 1.1 kB
(checked in by Frank Benoit <benoit@tionex.de>, 8 months ago)
|
reverted the char[] to String and use the an alias.
|
| Line | |
|---|
| 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 dwt.graphics.ImageDataLoader; |
|---|
| 14 |
|
|---|
| 15 |
public import dwt.graphics.ImageData; |
|---|
| 16 |
public import dwt.dwthelper.InputStream; |
|---|
| 17 |
|
|---|
| 18 |
import dwt.graphics.ImageLoader; |
|---|
| 19 |
import dwt.dwthelper.utils; |
|---|
| 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 |
} |
|---|