create pixmap from data

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Thomas Girod

    #1

    create pixmap from data

    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

  • Eric Deveaud

    #2
    Re: create pixmap from data

    Thomas Girod wrote:[color=blue]
    > 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 ?[/color]


    check the PIL (Python Imaging Library), Image module

    Eric


    --
    S> Je cherche aussi des adresses de lieux contenant des fossiles dans
    S> la région parisienne
    Le Sénat est l’une des deux chambres qui forment le Parlement. Il vote la loi, contrôle le Gouvernement et représente les collectivités territoriales.

    -+- DP in <http://www.le-gnu.net> : La dianurette et les fossiles -+-

    Comment

    Working...