Language

Bitmap.Config.Rgb565 Property

Definition

Each pixel is stored on 2 bytes and only the RGB channels are encoded: red is stored with 5 bits of precision (32 possible values), green is stored with 6 bits of precision (64 possible values) and blue is stored with 5 bits of precision.

[Android.Runtime.Register("RGB_565")]
public static Android.Graphics.Bitmap.Config? Rgb565 { get; }
[<Android.Runtime.Register("RGB_565")>]
static member Rgb565 : Android.Graphics.Bitmap.Config

Property Value

The opaque 16-bit configuration with five red, six green, and five blue bits.

Attributes

Remarks

Each pixel is stored on 2 bytes and only the RGB channels are encoded: red is stored with 5 bits of precision (32 possible values), green is stored with 6 bits of precision (64 possible values) and blue is stored with 5 bits of precision. This configuration can produce slight visual artifacts depending on the configuration of the source. For instance, without dithering, the result might show a greenish tint. To get better results dithering should be applied. This configuration may be useful when using opaque bitmaps that do not require high color fidelity.

Android reference for android.graphics.Bitmap.Config.RGB_565.

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.

Applies to