Re: Palette-mode PNG images

2008-11-24 Thread Lawrence D'Oliveiro
Lawrence D'Oliveiro wrote: > Ideally I'd like to create a PNG file with just two bits per pixel, with > four colour-table entries of my choice. I'm using PyCairo > to do the drawing, but that > doesn't seem to support colour-table images as far as I can tell

Re: Palette-mode PNG images

2008-11-18 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, I wrote: > data = string.join(map(chr, data), "") > TypeError: an integer is required OK, I figured that out, the putpalette call wants a sequence of integers being (R, G, B, R, G, B ...), not a sequence of sequences ((R, G, B), (R, G, B)...). >

Palette-mode PNG images

2008-11-15 Thread Lawrence D'Oliveiro
I'm trying to create PNG files to use in menus for authoring DVDs. As you may know, these menus are only allowed to have limited numbers of colours. Ideally I'd like to create a PNG file with just two bits per pixel, with four colour-table entries of my choice. I'm using PyCairo