Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3 ia:ã@sGdd„dƒZddd„ZdS)c@s0eZdZdZdd„Zdd„Zdd„Zdd „Zd S) ÚIteratora- This class implements an iterator object that can be used to loop over an image sequence. You can use the ``[]`` operator to access elements by index. This operator will raise an :py:exc:`IndexError` if you try to access a nonexistent frame. :param im: An image object. cCs,t|dƒstdƒ‚||_t|jddƒ|_dS)NÚseekzim must have seek methodZ _min_frameé)ÚhasattrÚAttributeErrorÚimÚgetattrÚposition)Úselfr©r ú2/tmp/tmp5hum_rxs/lib64/python/PIL/ImageSequence.pyÚ__init__s zIterator.__init__cCs@y|jj|ƒ|jStk r:}z t|‚WYdd}~XnXdS)N)rrÚEOFErrorÚ IndexError)r ZixÚer r r Ú __getitem__%s  zIterator.__getitem__cCs|S)Nr )r r r r Ú__iter__,szIterator.__iter__cCsPy"|jj|jƒ|jd7_|jStk rJ}z t|‚WYdd}~XnXdS)Né)rrrr Ú StopIteration)r rr r r Ú__next__/s zIterator.__next__N)Ú__name__Ú __module__Ú __qualname__Ú__doc__r rrrr r r r rs  rNcsdt|tƒs|g}g}x4|D],}|jƒ}|dd„t|ƒDƒ7}|j|ƒqWˆr`‡fdd„|DƒS|S)a Applies a given function to all frames in an image or a list of images. The frames are returned as a list of separate images. :param im: An image, or a list of images. :param func: The function to apply to all of the image frames. :returns: A list of images. cSsg|] }|jƒ‘qSr )Úcopy)Ú.0Zim_framer r r ú Hszall_frames..csg|] }ˆ|ƒ‘qSr r )rr)Úfuncr r rKs)Ú isinstanceÚlistÚtellrr)rrZimsZ imSequenceÚcurrentr )rr Ú all_frames8s  r!)N)rr!r r r r Ús%