Search code examples
pebble-watchpebble-sdk

What is the structure of a bitmap in Pebble-SDK on basalt


Using graphics_capture_frame_buffer a GBitmap is returned. What is the format of this if I wanted to work with it directly. How would I modify a single pixel?


Solution

  • In Pebble 3.0 you can use the gbitmap_* accessors:

    When the format is GBitmapFormat8Bit, each pixel is one byte in ARGB (2bits per component).