Re: float rgba list -> Image

Charles Cazabon <[email protected]> Wed, 31 Aug 2011 08:43:17 -0600
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>
Ingo Randolf <[email protected]> wrote:
> 
> I have a list with float-values describing an image like this:
> [R, G, B, A, R, G, B, A, R, G, B, A, R, G, B, A, R, G, B, A, ... etc.]
> 
> the RGBA-values are from 0. - 1.
> 
> is there a clever way to make a PIL-Image out of something like this?

PIL.Image.fromstring() is probably your best bet.

Charles
-- 
------------------------------------------------------------------
Charles Cazabon                   <[email protected]>
Software, consulting, and services available at http://pyropus.ca/
------------------------------------------------------------------
_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig