In freeimage plugin, set DummyArray to writable, use correct dtype.

This commit is contained in:
Stefan van der Walt
2010-05-14 15:11:57 +02:00
parent 81b3359590
commit 13199840cd
@@ -297,9 +297,9 @@ def _wrap_bitmap_bits_in_array(bitmap, shape, dtype):
class DummyArray:
__array_interface__ = {
'data': (bits, True),
'data': (bits, False),
'strides': strides,
'typestr': '|u1',
'typestr': dtype.byteorder + dtype.kind + str(dtype.itemsize),
'shape': tuple(shape),
}