|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcore.io.ImageIO
Writes an RGBImage to a file. This is a static class. Available file formats are: TIFF: Tagged Image File Format; TGA: Truevision (Targa); MonoTGA: gray-scale Truevision (Targa); Raw: Raw RGB pixel data; RawX: Raw RGB pixel data, 4-pixel horizontal interleaving;
Field Summary | |
private static byte[] |
bytes
|
private static java.io.FileOutputStream |
file
|
private static java.io.FileInputStream |
ifile
|
private static boolean |
reversebytes
|
Constructor Summary | |
ImageIO()
|
Method Summary | |
private static int |
i(byte b)
|
private static byte |
ReadByte()
|
private static int |
ReadDword()
|
static RGBImage |
ReadTIFF(java.lang.String filename)
Reads 'filename' as a TIFF file and creates an RGBImage object that represents its contents. |
private static int |
ReadWord()
|
private static void |
WriteBGR(byte r,
byte g,
byte b)
|
private static void |
WriteByte(int x)
|
private static void |
WriteDword(int x)
|
static void |
WriteMonoTGA(RGBImage image,
java.lang.String filename)
Writes a MonoTGA file representing 'image' to 'filename' The RGB components are mixed together in (50%, 35%, 15%) proportions |
static void |
WriteRawRGB(RGBImage image,
java.lang.String filename)
Writes a Raw file representing 'image' to 'filename' The pixels are written in RGB, left-right, top-down order |
static void |
WriteRawX(RGBImage image,
java.lang.String filename)
Writes a RawX file representing 'image' to 'filename' The pixels are written in RGB, left-right, top-down, 4-interleaved order |
private static void |
WriteRGB(byte r,
byte g,
byte b)
|
static void |
WriteTGA(RGBImage image,
java.lang.String filename)
Writes a TGA file represneting 'image' to 'filename' |
static void |
WriteTIFF(RGBImage image,
java.lang.String filename)
Writes a TIFF file representing 'image' to 'filename' |
private static void |
WriteTIFFEntry(int tag,
int type,
int count,
int data)
|
private static void |
WriteWord(int x)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static java.io.FileOutputStream file
private static java.io.FileInputStream ifile
private static byte[] bytes
private static boolean reversebytes
Constructor Detail |
public ImageIO()
Method Detail |
public static void WriteTIFF(RGBImage image, java.lang.String filename)
public static RGBImage ReadTIFF(java.lang.String filename)
public static void WriteRawRGB(RGBImage image, java.lang.String filename)
public static void WriteRawX(RGBImage image, java.lang.String filename)
public static void WriteMonoTGA(RGBImage image, java.lang.String filename)
public static void WriteTGA(RGBImage image, java.lang.String filename)
private static int i(byte b)
private static void WriteByte(int x) throws java.io.IOException
java.io.IOException
private static byte ReadByte() throws java.io.IOException
java.io.IOException
private static void WriteWord(int x) throws java.io.IOException
java.io.IOException
private static int ReadWord() throws java.io.IOException
java.io.IOException
private static void WriteDword(int x) throws java.io.IOException
java.io.IOException
private static int ReadDword() throws java.io.IOException
java.io.IOException
private static void WriteRGB(byte r, byte g, byte b) throws java.io.IOException
java.io.IOException
private static void WriteBGR(byte r, byte g, byte b) throws java.io.IOException
java.io.IOException
private static void WriteTIFFEntry(int tag, int type, int count, int data) throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |