how to convert a bitmap file to an array ?

Diez B. Roggisch deets at nospam.web.de
Tue Jun 5 08:09:24 EDT 2007


stef wrote:

> hello
> 
> I can find all kind of procedures to convert an array to a bitmap
> (wxPython, PIL),
> but I can't find the reverse,
> either
>    - convert a bitmap to an array
> or
>   - read a bitmap file to an array

Not true for PIL, Image.getdata and Image.putdata are your friends.

Diez



More information about the Python-list mailing list