|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.mobilebio.png.Encoder
public class Encoder
MIDP PNG Encoder for J2ME
Method Summary | |
---|---|
static javax.microedition.lcdui.Image |
toImage(byte[] png)
Returns an Image object from the suplied values. |
static javax.microedition.lcdui.Image |
toImage(int width,
int height,
byte[] alpha,
byte[] red,
byte[] green,
byte[] blue)
Returns an Image object from the supplied values. |
static byte[] |
toPNG(javax.microedition.lcdui.Image image)
Returns a PNG stored in a byte array from the supplied Image. |
static byte[] |
toPNG(int width,
int height,
byte[] alpha,
byte[] red,
byte[] green,
byte[] blue)
Returns a PNG stored in a byte array from the supplied values. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static javax.microedition.lcdui.Image toImage(int width, int height, byte[] alpha, byte[] red, byte[] green, byte[] blue)
width
- the width of the imageheight
- the height of the imagealpha
- the byte array of the alpha channelred
- the byte array of the red channelgreen
- the byte array of the green channelblue
- the byte array of the blue channel
public static javax.microedition.lcdui.Image toImage(byte[] png)
png
- a byte array containing PNG data
public static byte[] toPNG(int width, int height, byte[] alpha, byte[] red, byte[] green, byte[] blue) throws java.io.IOException
width
- the width of the imageheight
- the height of the imagealpha
- the byte array of the alpha channelred
- the byte array of the red channelgreen
- the byte array of the green channelblue
- the byte array of the blue channel
java.io.IOException
public static byte[] toPNG(javax.microedition.lcdui.Image image)
image
- an Image object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |