how i exercise bit map?
i wish exercise 2d bit map category python. category have following requirements:
allow formulating arbitrarily sized 2d bitmaps. i.e. emanate an 8 x 8 bitmap (8 bytes), something like:
bitmap = bitmap(8,8)
provide an api opening pieces 2d map boolean even integer values, i.e.:
if bitmap[1, 2] bitmap.get(0, 1)
able collect information packaged binary data. radically any quarrel bit map concatenated returned binary data. competence padded nearest byte something similar.
bitmap.data()
be means emanate new maps binary information retrieved:
new_bitmap = bitmap(8, 8, bitmap.data())
i know python means perform binary operations, nonetheless i'd suggestions best exercise class.
Comments
Post a Comment