On Thu, 29 Dec 2011 14:31:05 +0200, <auto11436...@hushmail.com> wrote:

Hi, I wanted to get the actual bmp data without writting the content
to disk.
Example:im = Image.new("RGB", (16, 16) )im.save('image.bmp')
I want to avoid im.save, and just get the actual BMP file data for
further processing.

Use im.tostring() to get the data as a string, or im.getdata() to get a 
sequence of (R,G,B) tuples.
_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to