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?
In Pebble 3.0 you can use the gbitmap_*
accessors:
gbitmap_get_data()
to get the bytes of datagbitmap_get_format()
to confirm the format of the Bitmap (should be 8bit per pixel on Basalt)gbitmap_get_bytes_per_row()
to get the number of bytes in each rowWhen the format is GBitmapFormat8Bit
, each pixel is one byte in ARGB (2bits per component).