public class IGIBitmapWriter extends Object implements BitmapWriter
| Constructor and Description |
|---|
IGIBitmapWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeFile()
Close the file, this completes the bitmap writing process.
|
void |
configure(String option,
String value)
This method will be called before writing begins.
|
void |
openFile(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(String option, String value)
BitmapWriterconfigure in interface BitmapWriterpublic void openFile(String filename) throws IOException
BitmapWriteropenFile in interface BitmapWriterfilename - filename to write the bitmap toIOException - thrown if an I/O error occurspublic void writeHeader(int width,
int height,
int tileSize)
throws IOException,
UnsupportedOperationException
BitmapWriterwriteHeader in interface BitmapWriterwidth - image widthheight - image heighttileSize - tile size or 0 if the image will not be sent in tiled
formIOException - thrown if an I/O error occursUnsupportedOperationException - 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 IOException
BitmapWriterwriteTile in interface BitmapWriterx - tile x coordinatey - tile y coordinatew - tile widthh - tile heightcolor - color dataalpha - alpha dataIOException - thrown if an I/O error occurspublic void closeFile()
throws IOException
BitmapWritercloseFile in interface BitmapWriterIOException - thrown if an I/O error occursCopyright © 2017. All rights reserved.