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

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top