AndroidBitmapInfo

#include <bitmap.h>

Bitmap info, see AndroidBitmap_getInfo().

Summary

Public attributes

flags
uint32_t
Bitfield containing information about the bitmap.
format
int32_t
The bitmap pixel format.
height
uint32_t
The bitmap height in pixels.
stride
uint32_t
The number of byte per row.
width
uint32_t
The bitmap width in pixels.

Public attributes

flags

uint32_t AndroidBitmapInfo::flags

Bitfield containing information about the bitmap.

Two bits are used to encode alpha. Use ANDROID_BITMAP_FLAGS_ALPHA_MASK and ANDROID_BITMAP_FLAGS_ALPHA_SHIFT to retrieve them.

One bit is used to encode whether the Bitmap uses the HARDWARE Config. Use ANDROID_BITMAP_FLAGS_IS_HARDWARE to know.

These flags were introduced in API level 30.

format

int32_t AndroidBitmapInfo::format

The bitmap pixel format.

See AndroidBitmapFormat

height

uint32_t AndroidBitmapInfo::height

The bitmap height in pixels.

stride

uint32_t AndroidBitmapInfo::stride

The number of byte per row.

width

uint32_t AndroidBitmapInfo::width

The bitmap width in pixels.