|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrebuild.graphics.ImageEncoder
rebuild.graphics.WBMPEncoder
public class WBMPEncoder
A Windows Bitmap (WBMP) encoder.
Field Summary |
---|
Fields inherited from class rebuild.graphics.ImageEncoder |
---|
compressionLevel, dataBytes, encodeAlpha, height, image, scaleX, scaleY, width, xOffset, yOffset |
Constructor Summary | |
---|---|
WBMPEncoder()
Class constructor |
|
WBMPEncoder(Bitmap image)
Class constructor specifying Bitmap to encode, with no alpha channel encoding. |
Method Summary | |
---|---|
boolean |
getInverted()
Get if the image encoding is inverted, the default is false. |
java.lang.String |
getMime()
Get the MIME type of the image encoder. |
protected byte[] |
inEncode(boolean encodeAlpha)
Creates an array of bytes that is the WBMP equivalent of the current image, specifying whether to encode alpha or not. |
void |
setInverted(boolean value)
Set if the image encoding is inverted, the default is false. |
Methods inherited from class rebuild.graphics.ImageEncoder |
---|
encode, encode, getARGBByte, getARGBInt, getCompressionLevel, getEncodeAlpha, getIndex, getIndex, setCompressionLevel, setEncodeAlpha, setImage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WBMPEncoder()
public WBMPEncoder(Bitmap image)
Bitmap
to encode, with no alpha channel encoding.
image
- A Java Image object which uses the DirectColorModel.Method Detail |
---|
public java.lang.String getMime()
getMime
in class ImageEncoder
public final boolean getInverted()
public final void setInverted(boolean value)
value
- true if the image encoder is inverted, false if otherwise.protected byte[] inEncode(boolean encodeAlpha) throws java.io.IOException
inEncode
in class ImageEncoder
encodeAlpha
- Ignored, WBMP's don't have an alpha channel.
java.io.IOException
- If an error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |