[reportlab-users] using image reader

John Keubler jtkeubler at yahoo.com
Wed Feb 8 21:40:31 EST 2006


Thanks for the help with using the imagereader function with the draw image function as shown here:  It worked just the way I wanted it to.  I can't seem to find this function in the documentation.  I thought I saw it buried in the api reference but it wasn't much.  Any idea where more documentation for it is available.  Also I may need some help in the future with producing line graphs from csv files for charting stock prices.
   
  You can use an ImageReader instance instead of a literal name. The ImageReader 
__init__ accepts a file name or URL or a StringIO or PIL Image instance as its 
first argument.

eg

from reportlab.lib.utils import ImageReader
im=ImageReader('http://www.reportlab.com/rsrc/encryption.gif')
c.drawImage(im)



			
---------------------------------
 Yahoo! Mail - Helps protect you from nasty viruses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://two.pairlist.net/pipermail/reportlab-users/attachments/20060208/18b1b558/attachment.html


More information about the reportlab-users mailing list