Re: How to convert simple B/W graphic to the dot matrix for the LED display/sign

2012-05-17 Thread EdmundBuffey
.html led strip lights 12v looking, probably better priced, and all 12 V. http://www.ledlight-mall.com/ LED Bulbs Wholesale -- View this message in context: http://python.6.n6.nabble.com/How-to-convert-simple-B-W-graphic-to-the-dot-matrix-for-the-LED-display-sign-tp4544790p4974894.html Sent

Re: How to convert simple B/W graphic to the dot matrix for the LED display/sign

2012-03-05 Thread Petr Jakes
> >>> import Image > >>> im=Image.new('L', (100,100)) > >>> im=im.convert('1') > >>> px=im.load() > >>> px[0,0] Thanks, load() method works great. One more question. Finally, I would like to store array in the database. What is the best way to store arrays? Petr -- http://mail.python.org/

Re: How to convert simple B/W graphic to the dot matrix for the LED display/sign

2012-03-04 Thread Max Erickson
Petr Jakes wrote: > >> What file format is the graphic in? How big is it? >> >> What file format do you want it to be? >> > > Now, I am able to create the png file with the resolution 432x64 > using PIL (using draw.text method for example). > > I would like to get the 432x64 True/False (Black/

Re: How to convert simple B/W graphic to the dot matrix for the LED display/sign

2012-03-04 Thread Petr Jakes
> What file format is the graphic in? How big is it? > > What file format do you want it to be? > Now, I am able to create the png file with the resolution 432x64 using PIL (using draw.text method for example). I would like to get the 432x64 True/False (Black/White) lookup table from this file,

Re: How to convert simple B/W graphic to the dot matrix for the LED display/sign

2012-03-04 Thread Steven D'Aprano
On Sun, 04 Mar 2012 02:28:16 -0800, Petr Jakes wrote: > I would like to convert simple B/W graphic to the 432x64 pixel matrix. > It is intended to display this graphic on the one color LED matrix > sign/display (432 LEDs width, 64 LEDs height). I am experimenting with > the PIL, but I did not find

How to convert simple B/W graphic to the dot matrix for the LED display/sign

2012-03-04 Thread Petr Jakes
I would like to convert simple B/W graphic to the 432x64 pixel matrix. It is intended to display this graphic on the one color LED matrix sign/display (432 LEDs width, 64 LEDs height). I am experimenting with the PIL, but I did not find solution there. It will be really helpful If somebody here ca