astex
Class ImageIO
java.lang.Object
astex.ImageIO
public class ImageIO
- extends java.lang.Object
Write a pixel format image to a file.
Limited options currently (windows bitmap).
|
Method Summary |
static int[] |
readBitmap(java.lang.String file,
int[] size)
Read a windows bitmap file. |
static boolean |
write(java.lang.String name,
int[] pixels,
int width,
int height,
boolean compress)
|
static boolean |
writeBMP(java.io.OutputStream os,
int[] pixels,
int width,
int height)
Write a windows bitmap file. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageIO
public ImageIO()
write
public static boolean write(java.lang.String name,
int[] pixels,
int width,
int height,
boolean compress)
readBitmap
public static int[] readBitmap(java.lang.String file,
int[] size)
- Read a windows bitmap file.
writeBMP
public static boolean writeBMP(java.io.OutputStream os,
int[] pixels,
int width,
int height)
- Write a windows bitmap file.
This is based on code from Javaworld, but with bugs ironed
out using code from the Java Image Utilities.