public
class
PixelFormat
extends Object
| java.lang.Object | |
| ↳ | android.graphics.PixelFormat |
Constants | |
|---|---|
int |
A_8
|
int |
JPEG
This constant was deprecated
in API level 8.
use |
int |
LA_88
|
int |
L_8
|
int |
OPAQUE
System chooses an opaque format (no alpha bits required) |
int |
RGBA_4444
|
int |
RGBA_5551
|
int |
RGBA_8888
|
int |
RGBX_8888
|
int |
RGB_332
|
int |
RGB_565
|
int |
RGB_888
|
int |
TRANSLUCENT
System chooses a format that supports translucency (many alpha bits) |
int |
TRANSPARENT
System chooses a format that supports transparency (at least 1 alpha bit) |
int |
UNKNOWN
|
int |
YCbCr_420_SP
This constant was deprecated
in API level 8.
use |
int |
YCbCr_422_I
This constant was deprecated
in API level 8.
use |
int |
YCbCr_422_SP
This constant was deprecated
in API level 8.
use |
Fields | |
|---|---|
public
int |
bitsPerPixel
|
public
int |
bytesPerPixel
|
Public constructors | |
|---|---|
PixelFormat()
|
|
Public methods | |
|---|---|
static
boolean
|
formatHasAlpha(int format)
|
static
void
|
getPixelFormatInfo(int format, PixelFormat info)
|
Inherited methods | |
|---|---|
java.lang.Object
| |
int JPEG
This constant was deprecated
in API level 8.
use ImageFormat.JPEG instead.
Constant Value: 256 (0x00000100)
int OPAQUE
System chooses an opaque format (no alpha bits required)
Constant Value: -1 (0xffffffff)
int TRANSLUCENT
System chooses a format that supports translucency (many alpha bits)
Constant Value: -3 (0xfffffffd)
int TRANSPARENT
System chooses a format that supports transparency (at least 1 alpha bit)
Constant Value: -2 (0xfffffffe)
int YCbCr_420_SP
This constant was deprecated
in API level 8.
use ImageFormat.NV21 instead.
Constant Value: 17 (0x00000011)
int YCbCr_422_I
This constant was deprecated
in API level 8.
use ImageFormat.YUY2 instead.
Constant Value: 20 (0x00000014)
int YCbCr_422_SP
This constant was deprecated
in API level 8.
use ImageFormat.NV16 instead.
Constant Value: 16 (0x00000010)
boolean formatHasAlpha (int format)
| Parameters | |
|---|---|
format |
int
|
| Returns | |
|---|---|
boolean |
|
void getPixelFormatInfo (int format,
PixelFormat info)
| Parameters | |
|---|---|
format |
int
|
info |
PixelFormat
|