Re: [Tutor] im.getdata()

2007-07-01 Thread Roel Schroeven
elis aeris schreef: > > > I am capturing a screen shot, but then the image was already > > > image, how do I .load it ? > > it's not image.load() I see. In that case, you can't use the method I described; that only works if you load the image from disk (as far as I know). I think you'd

Re: [Tutor] im.getdata()

2007-07-01 Thread elis aeris
I am capturing a screen shot, but then the image was already image, how do I .load it ? it's not image.load() import time import ImageGrab # Part of PIL from ctypes import * class RECT(Structure): _fields_ = [ ('left', c_ulong), ('top', c_ulong), ('right', c_ulong), ('botto

Re: [Tutor] im.getdata()

2007-07-01 Thread Roel Schroeven
elis aeris schreef: > Googling "PIL Handbook" yields this page > http://www.pythonware.com/library/pil/handbook/image.htm > > and, as I said, > """ > > > getdata > > *im.getdata()* => sequence If you're using PIL >= 1.1.6, there's

Re: [Tutor] im.getdata()

2007-07-01 Thread Alan Gauld
"elis aeris" <[EMAIL PROTECTED]> wrote > *im.getdata()* => sequence > > Returns the contents of an image as a sequence object > ... > Note that the sequence object returned by this method is an internal > PIL > data type, which only supports certain sequence operations, > including > iteration a

[Tutor] im.getdata()

2007-07-01 Thread elis aeris
Googling "PIL Handbook" yields this page http://www.pythonware.com/library/pil/handbook/image.htm and, as I said, """ getdata *im.getdata()* => sequence Returns the contents of an image as a sequence object containing pixel values. The sequence object is flattened, so that values for line