PixelFormat | API reference | Android Developers (original) (raw)
open class PixelFormat
Summary
Constants | |
---|---|
static Int | A_8 |
static Int | JPEG |
static Int | LA_88 |
static Int | L_8 |
static Int | OPAQUE System chooses an opaque format (no alpha bits required) |
static Int | RGBA_1010102 |
static Int | RGBA_4444 |
static Int | RGBA_5551 |
static Int | RGBA_8888 |
static Int | RGBA_F16 |
static Int | RGBX_8888 |
static Int | RGB_332 |
static Int | RGB_565 |
static Int | RGB_888 |
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_I |
static Int | YCbCr_422_SP |
Public constructors |
---|
PixelFormat() |
Public methods | |
---|---|
open static Boolean | formatHasAlpha(format: Int) |
open static Unit | getPixelFormatInfo(format: Int, info: PixelFormat!) |
Properties | |
---|---|
Int | bitsPerPixel |
Int | bytesPerPixel |
Constants
A_8
static val A_8: Int
Deprecated: Deprecated in Java.
Value: 8
LA_88
static val LA_88: Int
Deprecated: Deprecated in Java.
Value: 10
L_8
static val L_8: Int
Deprecated: Deprecated in Java.
Value: 9
OPAQUE
static val OPAQUE: Int
System chooses an opaque format (no alpha bits required)
Value: -1
RGBA_1010102
static val RGBA_1010102: Int
Value: 43
RGBA_4444
static val RGBA_4444: Int
Deprecated: Deprecated in Java.
Value: 7
RGBA_5551
static val RGBA_5551: Int
Deprecated: Deprecated in Java.
Value: 6
RGBA_8888
static val RGBA_8888: Int
Value: 1
RGBA_F16
static val RGBA_F16: Int
Value: 22
RGBX_8888
static val RGBX_8888: Int
Value: 2
RGB_332
static val RGB_332: Int
Deprecated: Deprecated in Java.
Value: 11
RGB_565
static val RGB_565: Int
Value: 4
RGB_888
static val RGB_888: Int
Value: 3
TRANSLUCENT
static val TRANSLUCENT: Int
System chooses a format that supports translucency (many alpha bits)
Value: -3
TRANSPARENT
static val TRANSPARENT: Int
System chooses a format that supports transparency (at least 1 alpha bit)
Value: -2
UNKNOWN
static val UNKNOWN: Int
Value: 0
Public constructors
PixelFormat
PixelFormat()
Public methods
Properties
bitsPerPixel
var bitsPerPixel: Int
bytesPerPixel
var bytesPerPixel: Int