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: Deprecated in Java.

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: Deprecated in Java.

Value: 10

L_8

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

Deprecated: Deprecated in Java.

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: Deprecated in Java.

Value: 7

RGBA_5551

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

Deprecated: Deprecated in Java.

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: Deprecated in Java.

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

PixelFormat

PixelFormat()

Public methods

getPixelFormatInfo

Added in API level 1
open static fun getPixelFormatInfo(
    format: Int,
    info: PixelFormat!
): Unit
Parameters
format Int: Value is android.graphics.PixelFormat#RGBA_8888, android.graphics.PixelFormat#RGBX_8888, android.graphics.PixelFormat#RGBA_F16, android.graphics.PixelFormat#RGBA_1010102, android.graphics.PixelFormat#RGB_888, android.graphics.PixelFormat#RGB_565, or android.graphics.PixelFormat.R_8

Properties

bitsPerPixel

Added in API level 1
var bitsPerPixel: Int

bytesPerPixel

Added in API level 1
var bytesPerPixel: Int