display monochromatic images wxPython

wongjoekmeu at yahoo.com wongjoekmeu at yahoo.com
Fri Apr 25 16:42:17 EDT 2008


Dear All,
I want to write a GUI program with wxPython displaying an image. But
the image I have is monochromatic. When I retrieve the data from the
image I end up with a list of integer. Starting from a list of integer
and knowing the width and height of the image, how do I display such
an image on a wx panel or frame ? I have had a look at the wxPython
demo but there I see only images where the data is a list of tuple
consisting of r,g ,b values. Is there are function where I directly
can input the list of array and let it display the image ?
Thanks in advance

RR



More information about the Python-list mailing list