Google is committed to advancing racial equity for Black communities. See how.
Added in API level 1

PixelFormat

open class PixelFormat
kotlin.Any
   ↳ android.graphics.PixelFormat

Summary

Constants

static Int

static Int

static Int

static Int

static Int

System chooses an opaque format (no alpha bits required)

static Int

static Int

static Int

static Int

static Int

static Int

static Int

static Int

static Int

static Int

System chooses a format that supports translucency (many alpha bits)

static Int

System chooses a format that supports transparency (at least 1 alpha bit)

static Int

static Int

static Int

static Int

Public constructors

Public methods

open static Boolean

open static Unit

Properties

Int

Int

Constants

A_8

Added in API level 1
Deprecated in API level 19
static val A_8: Int

Deprecated.

Value: 8

JPEG

Added in API level 1
Deprecated in API level 15
static val JPEG: Int

Deprecated: use ImageFormat.JPEG instead.

Value: 256

LA_88

Added in API level 1
Deprecated in API level 16
static val LA_88: Int

Deprecated.

Value: 10

L_8

Added in API level 1
Deprecated in API level 19
static val L_8: Int

Deprecated.

Value: 9

OPAQUE

Added in API level 1
static val OPAQUE: Int

System chooses an opaque format (no alpha bits required)

Value: -1

RGBA_1010102

Added in API level 26
static val RGBA_1010102: Int
Value: 43

RGBA_4444

Added in API level 1
Deprecated in API level 16
static val RGBA_4444: Int

Deprecated.

Value: 7

RGBA_5551

Added in API level 1
Deprecated in API level 16
static val RGBA_5551: Int

Deprecated.

Value: 6

RGBA_8888

Added in API level 1
static val RGBA_8888: Int
Value: 1

RGBA_F16

Added in API level 26
static val RGBA_F16: Int
Value: 22

RGBX_8888

Added in API level 1
static val RGBX_8888: Int
Value: 2

RGB_332

Added in API level 1
Deprecated in API level 16
static val RGB_332: Int

Deprecated.

Value: 11

RGB_565

Added in API level 1
static val RGB_565: Int
Value: 4

RGB_888

Added in API level 1
static val RGB_888: Int
Value: 3

TRANSLUCENT

Added in API level 1
static val TRANSLUCENT: Int

System chooses a format that supports translucency (many alpha bits)

Value: -3

TRANSPARENT

Added in API level 1
static val TRANSPARENT: Int

System chooses a format that supports transparency (at least 1 alpha bit)

Value: -2

UNKNOWN

Added in API level 1
static val UNKNOWN: Int
Value: 0

YCbCr_420_SP

Added in API level 1
Deprecated in API level 15
static val YCbCr_420_SP: Int

Deprecated: use ImageFormat.NV21 instead.

Value: 17

YCbCr_422_I

Added in API level 5
Deprecated in API level 15
static val YCbCr_422_I: Int

Deprecated: use ImageFormat.YUY2 instead.

Value: 20

YCbCr_422_SP

Added in API level 1
Deprecated in API level 15
static val YCbCr_422_SP: Int

Deprecated: use ImageFormat.NV16 instead.

Value: 16

Public constructors

<init>

PixelFormat()

Public methods

Properties

bitsPerPixel

Added in API level 1
var bitsPerPixel: Int

bytesPerPixel

Added in API level 1
var bytesPerPixel: Int