Documentation
¶
Overview ¶
Example: Android bitmap format constants and error codes.
Enumerates every bitmap pixel format defined by the NDK and prints its name and underlying integer value. Each format corresponds to an ANDROID_BITMAP_FORMAT_* constant used when creating or inspecting bitmaps through the jnigraphics API.
The program also demonstrates the Error type, which implements the standard error interface and wraps NDK result codes returned by bitmap operations.
This program does not require a live Android device; it only reads compile-time constants.
Click to show internal directories.
Click to hide internal directories.