public final class ImageFactory
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static IBufferedImage |
createBufferedImage(int width,
int height)
Creates an buffered image with defined with and height.
|
static IImage |
createImage(java.io.File file)
Creates an image from an file.
|
static IImage |
createImage(IFactory<java.io.InputStream> inputStream)
Creates an image from an input stream factory.
|
static IImage |
createImage(java.net.URL url)
Creates an image from an url.
|
static IImageFactory |
getInstance()
Gets the image factory instance
|
public static IImageFactory getInstance()
public static IImage createImage(java.io.File file)
file - The file that holds the imagepublic static IImage createImage(java.net.URL url)
url - The url to create the image frompublic static IImage createImage(IFactory<java.io.InputStream> inputStream)
inputStream - A factory for an input streampublic static IBufferedImage createBufferedImage(int width, int height)
width - The width of the imageheight - The height of the imageSiehe auch Jowidgets Nutzerhandbuch