[cairo] unable to make PIL work with cairo
wecing
w3cing at gmail.com
Sat Jan 8 08:09:44 PST 2011
Currently i'm writing a video player which uses cairo to draw subtitle on
each frame.
I successfully extracted all the frames as PIL Image objects, but I failed
to create cairo surfaces with that.
I refered to http://cairographics.org/pythoncairopil/ , but it seems that
maybe there're some problems in the document.
Here is the traceback:
File "main.py", line 96, in video_observer
img.get_data(), 'raw', 'RGBA', 0, 1)
File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 512, in
__getattr__
raise AttributeError(name)
AttributeError: get_data
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20110109/5f6f5f0d/attachment.htm>
More information about the cairo
mailing list