Stay organized with collections
Save and categorize content based on your preferences.
AndroidBitmapInfo
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
Declared in android/bitmap.h
uint32_t AndroidBitmapInfo::flags
Declared in android/bitmap.h
int32_t AndroidBitmapInfo::format
height
Declared in android/bitmap.h
uint32_t AndroidBitmapInfo::height
The bitmap height in pixels.
stride
Declared in android/bitmap.h
uint32_t AndroidBitmapInfo::stride
The number of byte per row.
width
Declared in android/bitmap.h
uint32_t AndroidBitmapInfo::width
The bitmap width in pixels.
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 2024-11-19 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 2024-11-19 UTC."],[],[],null,["# AndroidBitmapInfo Struct Reference\n\nAndroidBitmapInfo\n=================\n\nBitmap info, see [AndroidBitmap_getInfo()](/ndk/reference/group/bitmap#group___bitmap_1ga80292ee39d8a675928e38849742b54bf).\n\nSummary\n-------\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------|--------------------------------------------------------------|\n| [flags](#struct_android_bitmap_info_1a6c37b0fb4db50a168001ecb25e75aa1c) | `uint32_t` Bitfield containing information about the bitmap. |\n| [format](#struct_android_bitmap_info_1a0ed33d9a400937bcfa977eef8b2038a8) | `int32_t` The bitmap pixel format. |\n| [height](#struct_android_bitmap_info_1a62b31f4122f2a7bcbe3b40592fefaf4a) | `uint32_t` The bitmap height in pixels. |\n| [stride](#struct_android_bitmap_info_1aa7f0124c5009986f880b047aa780615f) | `uint32_t` The number of byte per row. |\n| [width](#struct_android_bitmap_info_1ac8bb497a66dc7d702cd616efc33e0962) | `uint32_t` The bitmap width in pixels. |\n\nPublic attributes\n-----------------\n\n### flags\n\nDeclared in `android/bitmap.h` \n\n```scdoc\nuint32_t AndroidBitmapInfo::flags\n``` \nBitfield containing information about the bitmap.\n\nTwo bits are used to encode alpha. Use [ANDROID_BITMAP_FLAGS_ALPHA_MASK](/ndk/reference/group/bitmap#group___bitmap_1gga39fca1837c5ce7715cbf571669660c13ad72c78fb3f1b6a1e3347067949a980a2) and [ANDROID_BITMAP_FLAGS_ALPHA_SHIFT](/ndk/reference/group/bitmap#group___bitmap_1gga39fca1837c5ce7715cbf571669660c13aa85ebc360591b247ffc7ded9fa78b06e) to retrieve them.\n\nOne bit is used to encode whether the Bitmap uses the HARDWARE Config. Use [ANDROID_BITMAP_FLAGS_IS_HARDWARE](/ndk/reference/group/bitmap#group___bitmap_1ggaaf8fd5f0e57d456151c951e0f3715fc4a9e3768ee25282777c2e7f241914bd286) to know.\n\nThese flags were introduced in API level 30. \n\n### format\n\nDeclared in `android/bitmap.h` \n\n```scdoc\nint32_t AndroidBitmapInfo::format\n``` \nThe bitmap pixel format.\n\nSee [AndroidBitmapFormat](/ndk/reference/group/bitmap#group___bitmap_1gaea286a2d4c61ae2abb02b51500499f13) \n\n### height\n\nDeclared in `android/bitmap.h` \n\n```scdoc\nuint32_t AndroidBitmapInfo::height\n``` \nThe bitmap height in pixels. \n\n### stride\n\nDeclared in `android/bitmap.h` \n\n```scdoc\nuint32_t AndroidBitmapInfo::stride\n``` \nThe number of byte per row. \n\n### width\n\nDeclared in `android/bitmap.h` \n\n```scdoc\nuint32_t AndroidBitmapInfo::width\n``` \nThe bitmap width in pixels."]]