Bitmap.Config.Rgba1010102 Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Each pixel is stored on 4 bytes.
[Android.Runtime.Register("RGBA_1010102", ApiSince=33)]
public static Android.Graphics.Bitmap.Config? Rgba1010102 { get; }
[<Android.Runtime.Register("RGBA_1010102", ApiSince=33)>]
static member Rgba1010102 : Android.Graphics.Bitmap.Config
Property Value
The 32-bit configuration with ten bits per color component and two bits for alpha.
- Attributes
Remarks
Each pixel is stored on 4 bytes. Each RGB channel is stored with 10 bits of precision (1024 possible values). There is an additional alpha channel that is stored with 2 bits of precision (4 possible values). This configuration is suited for wide-gamut and HDR content which does not require alpha blending, such that the memory cost is the same as ARGB_8888 while enabling higher color precision.
int color = (A & 0x3) << 30 | (B & 0x3ff) << 20 | (G & 0x3ff) << 10 | (R & 0x3ff);
Android reference for android.graphics.Bitmap.Config.RGBA_1010102.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.