# AndroidBitmapInfo

Bitmap info, see [AndroidBitmap_getInfo()](https://developer.android.com/ndk/reference/group/bitmap#group___bitmap_1ga80292ee39d8a675928e38849742b54bf).

## Summary

| ### Public attributes ||
|---|---|
| `https://developer.android.com/ndk/reference/struct/android-bitmap-info#struct_android_bitmap_info_1a6c37b0fb4db50a168001ecb25e75aa1c` | `uint32_t` Bitfield containing information about the bitmap. |
| `https://developer.android.com/ndk/reference/struct/android-bitmap-info#struct_android_bitmap_info_1a0ed33d9a400937bcfa977eef8b2038a8` | `int32_t` The bitmap pixel format. |
| `https://developer.android.com/ndk/reference/struct/android-bitmap-info#struct_android_bitmap_info_1a62b31f4122f2a7bcbe3b40592fefaf4a` | `uint32_t` The bitmap height in pixels. |
| `https://developer.android.com/ndk/reference/struct/android-bitmap-info#struct_android_bitmap_info_1aa7f0124c5009986f880b047aa780615f` | `uint32_t` The number of byte per row. |
| `https://developer.android.com/ndk/reference/struct/android-bitmap-info#struct_android_bitmap_info_1ac8bb497a66dc7d702cd616efc33e0962` | `uint32_t` The bitmap width in pixels. |

## Public attributes

### flags

Declared in `android/bitmap.h`

```scdoc
uint32_t AndroidBitmapInfo::flags
```
Bitfield containing information about the bitmap.

Two bits are used to encode alpha. Use [ANDROID_BITMAP_FLAGS_ALPHA_MASK](https://developer.android.com/ndk/reference/group/bitmap#group___bitmap_1ggaaf8fd5f0e57d456151c951e0f3715fc4ad72c78fb3f1b6a1e3347067949a980a2) and [ANDROID_BITMAP_FLAGS_ALPHA_SHIFT](https://developer.android.com/ndk/reference/group/bitmap#group___bitmap_1ggaaf8fd5f0e57d456151c951e0f3715fc4aa85ebc360591b247ffc7ded9fa78b06e) to retrieve them.

One bit is used to encode whether the Bitmap uses the HARDWARE Config. Use [ANDROID_BITMAP_FLAGS_IS_HARDWARE](https://developer.android.com/ndk/reference/group/bitmap#group___bitmap_1gga94798fdadfbf49a7c658ace669a1d310a9e3768ee25282777c2e7f241914bd286) to know.

These flags were introduced in API level 30.

### format

Declared in `android/bitmap.h`

```scdoc
int32_t AndroidBitmapInfo::format
```
The bitmap pixel format.

See [AndroidBitmapFormat](https://developer.android.com/ndk/reference/group/bitmap#group___bitmap_1gaea286a2d4c61ae2abb02b51500499f13)

### height

Declared in `android/bitmap.h`

```scdoc
uint32_t AndroidBitmapInfo::height
```
The bitmap height in pixels.

### stride

Declared in `android/bitmap.h`

```scdoc
uint32_t AndroidBitmapInfo::stride
```
The number of byte per row.

### width

Declared in `android/bitmap.h`

```scdoc
uint32_t AndroidBitmapInfo::width
```
The bitmap width in pixels.