formats

command
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL