danger.ui
Class ImageCodec
java.lang.Object
|
+--danger.ui.ImageCodec
- public class ImageCodec
- extends java.lang.Object
|
Method Summary |
static Bitmap |
decodeImage(byte[] inData)
|
static Bitmap |
decodeImage(byte[] inData,
int offset,
int len)
|
static Bitmap |
decodeJPEG(byte[] inJPEG)
|
static Bitmap |
decodeJPEG(byte[] inJPEG,
int offset,
int len)
|
static Bitmap |
decodePNG(byte[] inPNG)
|
static Bitmap |
decodePNG(byte[] inPNG,
int offset,
int len)
|
static int |
encodeJPEG(Bitmap inImage,
byte[] outJPEG,
int quality)
|
static void |
installJPEGImpl(JPEGCodecImpl inImpl)
|
static void |
installPNGImpl(PNGCodecImpl inImpl)
|
static boolean |
isJPEG(byte[] data)
|
static boolean |
isJPEG(byte[] data,
int offset,
int len)
|
static boolean |
isPNG(byte[] data)
|
static boolean |
isPNG(byte[] data,
int offset,
int len)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageCodec
public ImageCodec()
encodeJPEG
public static int encodeJPEG(Bitmap inImage,
byte[] outJPEG,
int quality)
decodeJPEG
public static Bitmap decodeJPEG(byte[] inJPEG)
decodeJPEG
public static Bitmap decodeJPEG(byte[] inJPEG,
int offset,
int len)
isJPEG
public static boolean isJPEG(byte[] data)
isJPEG
public static boolean isJPEG(byte[] data,
int offset,
int len)
decodePNG
public static Bitmap decodePNG(byte[] inPNG)
decodePNG
public static Bitmap decodePNG(byte[] inPNG,
int offset,
int len)
isPNG
public static boolean isPNG(byte[] data)
isPNG
public static boolean isPNG(byte[] data,
int offset,
int len)
decodeImage
public static Bitmap decodeImage(byte[] inData)
decodeImage
public static Bitmap decodeImage(byte[] inData,
int offset,
int len)
installJPEGImpl
public static void installJPEGImpl(JPEGCodecImpl inImpl)
installPNGImpl
public static void installPNGImpl(PNGCodecImpl inImpl)
Danger Confidential. Copyright © 2000-2003, Danger Inc.