The BBitmap class doesn't provide a way to actually display bitmap data. Displaying a bitmap is the task of BView functions such as DrawBitmap().
bitmap->AddChild(view);
B_TRANSPARENT_MAGIC_CMAP8 | 8-bit indexed color transparent pixel. |
B_TRANSPARENT_MAGIC_RGBA15 | 15-bit transparent pixel. |
B_TRANSPARENT_MAGIC_RGBA15_BIG | 15-bit transparent pixel, big-endian. |
B_TRANSPARENT_MAGIC_RGBA32 | 32-bit transparent pixel. |
B_TRANSPARENT_MAGIC_RGBA32_BIG | 32-bit transparent pixel, big-endian. |