Closed PGNetHun closed 3 years ago
If PNG decoder is initialized (using imagetools.py), then lv.canvas() throws AttributeError: 'NoneType' object has no attribute '__dereference__' exception in this line: png_header = bytes(lv.img_dsc_t.__cast__(src).data.__dereference__(24))
imagetools.py
lv.canvas()
AttributeError: 'NoneType' object has no attribute '__dereference__'
png_header = bytes(lv.img_dsc_t.__cast__(src).data.__dereference__(24))
So, basically do the following:
lv.canvas(lv.scr_act())
Merged!
Thank you.
If PNG decoder is initialized (using
imagetools.py
), thenlv.canvas()
throwsAttributeError: 'NoneType' object has no attribute '__dereference__'
exception in this line:png_header = bytes(lv.img_dsc_t.__cast__(src).data.__dereference__(24))
So, basically do the following:
lv.canvas(lv.scr_act())