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 |
formatHasAlpha(format: Int) |
open static Unit |
getPixelFormatInfo(format: Int, info: PixelFormat!) |
Properties | |
---|---|
Int | |
Int |
Constants
OPAQUE
Added in API level 1
static val OPAQUE: Int
System chooses an opaque format (no alpha bits required)
Value: -1
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
Public constructors
PixelFormat
PixelFormat()
Public methods
formatHasAlpha
Added in API level 1
open static fun formatHasAlpha(format: Int): Boolean
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 |
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 |