create pixmap from data

T

Thomas Girod

Hi there.

I have a list containing integer values from 0 to 255. With this list I
have informations width and height, as width * height = len(my_list)

What I want to do is to convert this array into a pixmap of dimension
width * height in order to draw it inside a pygtk GUI.

Any suggestions about a way to display those informations ?

cheers

Thomas
 
E

Eric Deveaud

Thomas said:
Hi there.

I have a list containing integer values from 0 to 255. With this list I
have informations width and height, as width * height = len(my_list)

What I want to do is to convert this array into a pixmap of dimension
width * height in order to draw it inside a pygtk GUI.

Any suggestions about a way to display those informations ?


check the PIL (Python Imaging Library), Image module

Eric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top