Image conversion
#6
(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.


Attached Files
.png   Screenshot from 2020-07-10 17-27-35.png (Size: 163.11 KB / Downloads: 421)
.png   Screenshot from 2020-07-10 17-37-28.png (Size: 146.41 KB / Downloads: 444)


Messages In This Thread
Image conversion - by pratyush049 - 07-01-2020, 04:54 AM
RE: Image conversion - by danielt - 07-01-2020, 07:34 AM
RE: Image conversion - by pratyush049 - 07-01-2020, 11:39 PM
RE: Image conversion - by pratyush049 - 07-08-2020, 12:03 AM
RE: Image conversion - by danielt - 07-08-2020, 03:00 AM
RE: Image conversion - by pratyush049 - 07-10-2020, 05:13 AM
RE: Image conversion - by danielt - 07-13-2020, 03:14 AM
RE: Image conversion - by pratyush049 - 07-13-2020, 05:16 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)