dco_decode_bitmap_image method
Implementation
@protected
BitmapImage dco_decode_bitmap_image(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
final arr = raw as List<dynamic>;
if (arr.length != 3)
throw Exception('unexpected arr length: expect 3 but see ${arr.length}');
return BitmapImage(
bitmap: dco_decode_list_prim_u_8_strict(arr[0]),
width: dco_decode_u_32(arr[1]),
height: dco_decode_u_32(arr[2]),
);
}