| Reply | « Previous Thread | Next Thread » |
|
From PIL handbook we can see:
The Python Imaging Library contains some basic support for image sequences (also called animation formats). Supported sequence formats include FLI/FLC, GIF, and a few experimental formats. TIFF files can also contain more than one frame. When you open a sequence file, PIL automatically loads the first frame in the sequence. You can use the seek and tell methods to move between different frames: Example: Reading sequences import Image im = Image.open("animation.gif") im.seek(1) # skip to the second frame try: while 1: im.seek(im.tell()+1) # do something to im except EOFError: pass # end of sequence I am wondering whether pyforS60 can also implement this? I search in graphic library but not find seek and tell method. If it is not supported, how could I write an extension to support this methods? Great thanks! |
|
Quote:
No , PyS60 doesn't support PIL ![]() But you can simulate this image sequences with standard MBM (Multi Bitmaps) files from Symbian OS ! One MBM file can contain many images in itself. Each image is indexed by a number. Look for more details on this post. Many code snipped can be found for handling mbm files and a python S60 script allow to make one mbm file from severals gif files ! pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 ! pys60 extension modules on http://cyke64.googlepages.com/ |
|
PyS60 graphics support isn't actually built on the PIL - it just has a similar API built on what Symbian OS provides natively. I don't remember right now if Symbian has support for other multi-image files besides MBM - is anyone wiser here?
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| --- ???save image problem??? --- | ferenn | Mobile Java Media (Graphics & Sounds) | 6 | 2007-10-01 15:33 |
| Opening a JPEG Image | ummarbhutta | Mobile Java Media (Graphics & Sounds) | 8 | 2007-02-15 07:34 |
| how to cut some part of Image | mshouab | Mobile Java Media (Graphics & Sounds) | 2 | 2006-08-04 10:05 |
| HELP: Mutable Image to Immutable Image? | rj_cybersilver | Mobile Java Media (Graphics & Sounds) | 1 | 2005-03-26 10:58 |
| how to get coordinate & file name of an Image item? J2me supports array? URGENT! | lingtze1 | Mobile Java General | 1 | 2003-04-22 14:56 |