public class ImageUtils
extends java.lang.Object
Constructor and Description |
---|
ImageUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
pngCreateByteArray(javax.microedition.lcdui.Image img)
Creates a byte-array PNG file using an Image.
|
static byte[] |
pngCreateByteArray(int image_width,
int image_height,
byte[] argb_image)
Creates a byte-array PNG file using pixel ARGB data.
|
static byte[] |
pngCreateByteArray(int image_width,
int image_height,
int[] argb_image)
Creates a byte-array PNG file using pixel ARGB data.
|
public static byte[] pngCreateByteArray(javax.microedition.lcdui.Image img)
img
- an Image to processpublic static byte[] pngCreateByteArray(int image_width, int image_height, int[] argb_image)
image_width
- pixel widthimage_height
- pixel heightargb_image
- argb pixel entries, in the format supplied by Image.getRGBpublic static byte[] pngCreateByteArray(int image_width, int image_height, byte[] argb_image)
image_width
- pixel widthimage_height
- pixel heightargb_image
- a/r/g/b pixel entries