Stay organized with collections
Save and categorize content based on your preferences.
open class 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 |
|
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
Public methods
open static fun formatHasAlpha(format: Int): Boolean
Properties
bitsPerPixel
var bitsPerPixel: Int
bytesPerPixel
var bytesPerPixel: Int
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]