[Tutor] Raw image display in a GUI window
lard at tardis.ed.ac.uk
Wed Nov 9 00:43:21 CET 2005
Alex Hunsley wrote:
> Marcin Komorowski wrote:
>> 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,
> How about PyUI?
> It may do what you're looking for...
To add to my previous comment.... have a look at PyGame too:
It's designed for games programming, and makes it a snap to load and
display an image in a window! (and lots of other things, e.g. sprites
More information about the Tutor