07-10-2020, 05:13 AM
(This post was last modified: 07-10-2020, 06:57 AM by pratyush049.)
(07-08-2020, 03:00 AM)danielt Wrote: It's a command line tool so you should just be able to run it and it will show the results (which can be redirected to a file to avoid having to copy 'n paste from the terminal):
Code:./tools/rle_encode.py --help
./tools/rle_encode.py --2bit myimage.png > myimage.py
./tools/rle_encode.py --2bit image1.png image2.png image3.png > images.py
sir,
After conversion of image 240x240 pixels i tried to implement in the demoApp.py and tried to execute in simulator it crashes. i used this code:
draw._rle2bit(self._logo,20, 20, fg=0xffff, c1=0x4a69, c2=0x7bef)
what could be the reason. i attached the screenshot with this message.
if u can share to convert 1-bit rle. It would be helpful.
thank you.