how to convert a bitmap file to an array ?
Stefan Sonnenberg-Carstens
stefan.sonnenberg at pythonmeister.com
Tue Jun 5 08:02:45 EDT 2007
stef schrieb:
> 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
>
> thanks,
> Stef Mientki
>
Take a look at the "struct" module.
There you fill find pack/unpack, which can do what you need.
More information about the Python-list
mailing list