you should use bitmaps and masking.
There are examples available: one with bitmap response:
https://stackoverflow.com/questions/8508...-in-python
see answer: https://stackoverflow.com/a/8508963
more
google: 'bitmasks python'
There are examples available: one with bitmap response:
https://stackoverflow.com/questions/8508...-in-python
see answer: https://stackoverflow.com/a/8508963
more
google: 'bitmasks python'