English | Site Directory

Android - An Open Handset Alliance Project

android.graphics
public class

android.graphics.PixelFormat

java.lang.Object
android.graphics.PixelFormat

Summary

Constants

      Value  
int  A_8    0x00000008 
int  LA_88    10  0x0000000a 
int  L_8    0x00000009 
int  OPAQUE    -1  0xffffffff 
int  RGBA_4444    0x00000007 
int  RGBA_5551    0x00000006 
int  RGBA_8888    0x00000001 
int  RGBX_8888    0x00000002 
int  RGB_332    11  0x0000000b 
int  RGB_565    0x00000004 
int  RGB_888    0x00000003 
int  TRANSLUCENT    -3  0xfffffffd 
int  TRANSPARENT    -2  0xfffffffe 
int  UNKNOWN    0x00000000 

Fields

public      int  bitsPerPixel   
public      int  bytesPerPixel   

Public Constructors

          PixelFormat()

Public Methods

      static  boolean  formatHasAlpha(int format)
      static  void  getPixelFormatInfo(int format, PixelFormat info)
Methods inherited from class java.lang.Object

Details

Constants

public static final int A_8

Constant Value: 8 (0x00000008)

public static final int LA_88

Constant Value: 10 (0x0000000a)

public static final int L_8

Constant Value: 9 (0x00000009)

public static final int OPAQUE

Constant Value: -1 (0xffffffff)

public static final int RGBA_4444

Constant Value: 7 (0x00000007)

public static final int RGBA_5551

Constant Value: 6 (0x00000006)

public static final int RGBA_8888

Constant Value: 1 (0x00000001)

public static final int RGBX_8888

Constant Value: 2 (0x00000002)

public static final int RGB_332

Constant Value: 11 (0x0000000b)

public static final int RGB_565

Constant Value: 4 (0x00000004)

public static final int RGB_888

Constant Value: 3 (0x00000003)

public static final int TRANSLUCENT

Constant Value: -3 (0xfffffffd)

public static final int TRANSPARENT

Constant Value: -2 (0xfffffffe)

public static final int UNKNOWN

Constant Value: 0 (0x00000000)

Fields

public int bitsPerPixel

public int bytesPerPixel

Public Constructors

public PixelFormat()

Public Methods

public static boolean formatHasAlpha(int format)

public static void getPixelFormatInfo(int format, PixelFormat info)

Build m5-rc15g - 14 May 2008 12:50