Build 1.0_r1(from source)

android.graphics
Class PixelFormat

java.lang.Object
  extended by android.graphics.PixelFormat

public class PixelFormat
extends Object


Field Summary
static int A_8
           
 int bitsPerPixel
           
 int bytesPerPixel
           
static int JPEG
          Encoded formats.
static int L_8
           
static int LA_88
           
static int OPAQUE
          System chooses an opaque format (no alpha bits required)
static int RGB_332
           
static int RGB_565
           
static int RGB_888
           
static int RGBA_4444
           
static int RGBA_5551
           
static int RGBA_8888
           
static int RGBX_8888
           
static int TRANSLUCENT
          System chooses a format that supports translucency (many alpha bits)
static int TRANSPARENT
          System chooses a format that supports transparency (at least 1 alpha bit)
static int UNKNOWN
           
static int YCbCr_420_SP
           
static int YCbCr_422_SP
          YCbCr formats, used for video.
 
Constructor Summary
PixelFormat()
           
 
Method Summary
static boolean formatHasAlpha(int format)
           
static void getPixelFormatInfo(int format, PixelFormat info)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN

public static final int UNKNOWN
See Also:
Constant Field Values

TRANSLUCENT

public static final int TRANSLUCENT
System chooses a format that supports translucency (many alpha bits)

See Also:
Constant Field Values

TRANSPARENT

public static final int TRANSPARENT
System chooses a format that supports transparency (at least 1 alpha bit)

See Also:
Constant Field Values

OPAQUE

public static final int OPAQUE
System chooses an opaque format (no alpha bits required)

See Also:
Constant Field Values

RGBA_8888

public static final int RGBA_8888
See Also:
Constant Field Values

RGBX_8888

public static final int RGBX_8888
See Also:
Constant Field Values

RGB_888

public static final int RGB_888
See Also:
Constant Field Values

RGB_565

public static final int RGB_565
See Also:
Constant Field Values

RGBA_5551

public static final int RGBA_5551
See Also:
Constant Field Values

RGBA_4444

public static final int RGBA_4444
See Also:
Constant Field Values

A_8

public static final int A_8
See Also:
Constant Field Values

L_8

public static final int L_8
See Also:
Constant Field Values

LA_88

public static final int LA_88
See Also:
Constant Field Values

RGB_332

public static final int RGB_332
See Also:
Constant Field Values

YCbCr_422_SP

public static final int YCbCr_422_SP
YCbCr formats, used for video. These are not necessarily supported by the hardware.

See Also:
Constant Field Values

YCbCr_420_SP

public static final int YCbCr_420_SP
See Also:
Constant Field Values

JPEG

public static final int JPEG
Encoded formats. These are not necessarily supported by the hardware.

See Also:
Constant Field Values

bytesPerPixel

public int bytesPerPixel

bitsPerPixel

public int bitsPerPixel
Constructor Detail

PixelFormat

public PixelFormat()
Method Detail

getPixelFormatInfo

public static void getPixelFormatInfo(int format,
                                      PixelFormat info)

formatHasAlpha

public static boolean formatHasAlpha(int format)

Build 1.0_r1(from source)

Please submit a feedback, bug or feature