Re: Pixel Array => Bitmap File

2007-02-27 Thread Jason B
My mistake, I see the section now about "Writing Your Own File Decoder..." Thanks again for your help! - J "Jason B" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks, Roel... > > The Image.frombuffer() method looks promising, but the "mode" parameter > seems a bit too limi

Re: Pixel Array => Bitmap File

2007-02-27 Thread Jason B
Thanks, Roel... The Image.frombuffer() method looks promising, but the "mode" parameter seems a bit too limited for my needs. I must be able to specify not only the order of the bits (RGB in any order) but also whether the format is 565, 555, etc. Maybe I need to work outside the bounds of PI

Re: Pixel Array => Bitmap File

2007-02-27 Thread Roel Schroeven
Jason B schreef: > Hi all, > > I'm somewhat new to Python and I'm trying to figure out the best way to > accomplish the following: > > From an array of pixel data in an XML file (given the format, width and > height of the image as attributes) I must read in the data and save it off > as a bmp

Pixel Array => Bitmap File

2007-02-27 Thread Jason B
Hi all, I'm somewhat new to Python and I'm trying to figure out the best way to accomplish the following: >From an array of pixel data in an XML file (given the format, width and height of the image as attributes) I must read in the data and save it off as a bmp file. I've gotten the PIL and