public class EXRBitmapWriter extends java.lang.Object implements BitmapWriter
Constructor and Description |
---|
EXRBitmapWriter() |
Modifier and Type | Method and Description |
---|---|
void |
closeFile()
Close the file, this completes the bitmap writing process.
|
void |
configure(java.lang.String option,
java.lang.String value)
This method will be called before writing begins.
|
void |
openFile(java.lang.String filename)
Open a handle to the specified file for writing.
|
void |
writeHeader(int width,
int height,
int tileSize)
Write the bitmap header.
|
void |
writeTile(int x,
int y,
int w,
int h,
Color[] color,
float[] alpha)
Write a tile of data.
|
public void configure(java.lang.String option, java.lang.String value)
BitmapWriter
configure
in interface BitmapWriter
public void openFile(java.lang.String filename) throws java.io.IOException
BitmapWriter
openFile
in interface BitmapWriter
filename
- filename to write the bitmap tojava.io.IOException
- thrown if an I/O error occurspublic void writeHeader(int width, int height, int tileSize) throws java.io.IOException, java.lang.UnsupportedOperationException
BitmapWriter
writeHeader
in interface BitmapWriter
width
- image widthheight
- image heighttileSize
- tile size or 0 if the image will not be sent in tiled
formjava.io.IOException
- thrown if an I/O error occursjava.lang.UnsupportedOperationException
- thrown if this writer does not
support writing the image with the supplied tile sizepublic void writeTile(int x, int y, int w, int h, Color[] color, float[] alpha) throws java.io.IOException
BitmapWriter
writeTile
in interface BitmapWriter
x
- tile x coordinatey
- tile y coordinatew
- tile widthh
- tile heightcolor
- color dataalpha
- alpha datajava.io.IOException
- thrown if an I/O error occurspublic void closeFile() throws java.io.IOException
BitmapWriter
closeFile
in interface BitmapWriter
java.io.IOException
- thrown if an I/O error occurs