[Tutor] Raw image display in a GUI window

Marcin Komorowski marcink at ieee.org
Tue Nov 8 20:24:12 CET 2005


Thanks Alex,

Do you know if I can find somewhere sample code that would, lets say, create 
a 100x100 image and display it?

Thanks,
Marcin
----- Original Message ----- 
From: "Alex Hunsley" <lard at tardis.ed.ac.uk>
To: "Marcin Komorowski" <marcink at ieee.org>
Cc: "python-tutor" <tutor at python.org>
Sent: Tuesday, November 08, 2005 10:32 AM
Subject: Re: [Tutor] Raw image display in a GUI window


> Marcin Komorowski wrote:
>
>>Hello,
>>
>>I want to use Python to do some experimentation with graphic 
>>processing/manipulation, and I am looking for a way to be able to 
>>manipulate individual pixels of the image, as well as display it in a GUI. 
>>Ideal image representation would be something of the form of a 
>>two-dimensional array of tuples, each tuple containing the Red, Green and 
>>Blue components.
>>
>>I have looked at Tk and Tkinter, and there is a PhotoImage class that can 
>>define an image which can than be displayed in a Canvas widget, but the 
>>PhotoImage class seams to be doing a lot of extra work on the image, 
>>including gamma correction, etc.  I am interested in being able to display 
>>exactly the pixel values I set.
>>
>>Thank You all in advance,
>>Marcin
> How about PyUI?
> http://pyui.sourceforge.net/
> It may do what you're looking for...
> alex
>
>>
>>_______________________________________________
>>Tutor maillist  -  Tutor at python.org
>>http://mail.python.org/mailman/listinfo/tutor
>>
>>
>>
>
> 




More information about the Tutor mailing list