public class WriteFile extends Object
Constructor and Description |
---|
WriteFile() |
Modifier and Type | Method and Description |
---|---|
static Bitmap |
writeBitmap(Pix pixs)
Writes a Pix to an Android Bitmap object.
|
static byte[] |
writeBytes8(Pix pixs)
Write an 8bpp Pix to a flat byte array.
|
static int |
writeBytes8(Pix pixs,
byte[] data)
Write an 8bpp Pix to a flat byte array.
|
static boolean |
writeImpliedFormat(Pix pixs,
File file)
Writes a Pix to file using the file extension as the output format;
supported formats are .bmp, .jpg, and .png.
|
public static byte[] writeBytes8(Pix pixs)
pixs
- The 8bpp source image.public static int writeBytes8(Pix pixs, byte[] data)
pixs
- The 8bpp source image.data
- A byte array large enough to hold the pixels of pixs.public static boolean writeImpliedFormat(Pix pixs, File file)
Notes:
pixs
- Source image.file
- The file to write.true
on successpublic static Bitmap writeBitmap(Pix pixs)
pixs
- The source image.null
on failure