public class BitmapImageFactory extends Object
We put these factory methods into this class instead of into class BitmapImage, because we don't want to put this additional code into Java applets that don't need this functionality.
| Modifier and Type | Method and Description |
|---|---|
static BitmapImage |
toBitmapImage(BufferedImage mis) |
static BitmapImage |
toBitmapImage(ColorCyclingMemoryImageSource mis) |
static BitmapImage |
toBitmapImage(MemoryImageSource mis) |
static BufferedImage |
toBufferedImage(BitmapImage bm)
Creates a BufferedImage using the provided BitmapImage.
|
static Image |
toMemoryImage(BitmapImage bm) |
static void |
write(BitmapImage bm,
File f) |
static void |
write(BitmapImage bm,
OutputStream out) |
public static BufferedImage toBufferedImage(BitmapImage bm)
bm - The BitmapImage holding the image data.public static Image toMemoryImage(BitmapImage bm)
public static BitmapImage toBitmapImage(MemoryImageSource mis)
public static BitmapImage toBitmapImage(ColorCyclingMemoryImageSource mis)
public static BitmapImage toBitmapImage(BufferedImage mis)
public static void write(BitmapImage bm, File f) throws IOException
IOExceptionpublic static void write(BitmapImage bm, OutputStream out) throws IOException
IOExceptionCopyright © 2014. All Rights Reserved.