|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.media.jai.codec.BMPEncodeParam
An instance of ImageEncodeParam
for encoding images in
the BMP format.
This class allows for the specification of various parameters while encoding (writing) a BMP format image file. By default, the version used is VERSION_3, no compression is used, and the data layout is bottom_up, such that the pixels are stored in bottom-up order, the first scanline being stored last.
This class is not a committed part of the JAI API. It may be removed or changed in future releases of JAI.
Field Summary | |
static int |
VERSION_2
Constant for BMP version 2. |
static int |
VERSION_3
Constant for BMP version 3. |
static int |
VERSION_4
Constant for BMP version 4. |
Constructor Summary | |
BMPEncodeParam()
Constructs an BMPEncodeParam object with default values for parameters. |
Method Summary | |
int |
getVersion()
Returns the BMP version to be used. |
boolean |
isCompressed()
Returns the value of the parameter compressed . |
boolean |
isTopDown()
Returns the value of the topDown parameter. |
void |
setCompressed(boolean compressed)
If set, the data will be written out compressed, if possible. |
void |
setTopDown(boolean topDown)
If set, the data will be written out in a top-down manner, the first scanline being written first. |
void |
setVersion(int versionNumber)
Sets the BMP version to be used. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int VERSION_2
public static final int VERSION_3
public static final int VERSION_4
Constructor Detail |
public BMPEncodeParam()
Method Detail |
public void setVersion(int versionNumber)
public int getVersion()
public void setCompressed(boolean compressed)
public boolean isCompressed()
compressed
.public void setTopDown(boolean topDown)
public boolean isTopDown()
topDown
parameter.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |