|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sunflow.image.writers.HDRBitmapWriter
public class HDRBitmapWriter
| Constructor Summary | |
|---|---|
HDRBitmapWriter()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HDRBitmapWriter()
| Method Detail |
|---|
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 BitmapWriterfilename - filename to write the bitmap to
java.io.IOException - thrown if an I/O error occurs
public void writeHeader(int width,
int height,
int tileSize)
throws java.io.IOException,
java.lang.UnsupportedOperationException
BitmapWriter
writeHeader in interface BitmapWriterwidth - image widthheight - image heighttileSize - tile size or 0 if the image will not be sent in tiled
form
java.io.IOException - thrown if an I/O error occurs
java.lang.UnsupportedOperationException - thrown if this writer does not
support writing the image with the supplied tile size
public void writeTile(int x,
int y,
int w,
int h,
Color[] color,
float[] alpha)
throws java.io.IOException
BitmapWriter
writeTile in interface BitmapWriterx - tile x coordinatey - tile y coordinatew - tile widthh - tile heightcolor - color dataalpha - alpha data
java.io.IOException - thrown if an I/O error occurs
public void closeFile()
throws java.io.IOException
BitmapWriter
closeFile in interface BitmapWriterjava.io.IOException - thrown if an I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||