ich möchte mittels
Code: Alles auswählen
c.drawImage(bild,2.0*cm,1.0*cm,width=2.0*cm,height=2.0*cm,mask=None)
das Bils ist etwa so:
Code: Alles auswählen
from wx.lib.embeddedimage import PyEmbeddedImage
symbol = PyEmbeddedImage( ....... "pmnU0DnIz++f/23bKvbKshyNRv2X/R+SUCqnYpb6mwAAAABJRU5ErkJggg==")
bild = symbol.GetImage
Was mache ich falsch???c.drawImage(bild,2.0*cm,1.0*cm,width=2.0*cm,height=2.0*cm,mask=None)
File "C:\Python26\lib\site-packages\reportlab\pdfgen\canvas.py", line 825, in drawImage
imgObj = pdfdoc.PDFImageXObject(name, image, mask=mask)
File "C:\Python26\lib\site-packages\reportlab\pdfbase\pdfdoc.py", line 2076, in __init__
ext = string.lower(os.path.splitext(source)[1])
File "C:\Python26\lib\ntpath.py", line 190, in splitext
return genericpath._splitext(p, sep, altsep, extsep)
File "C:\Python26\lib\genericpath.py", line 91, in _splitext
sepIndex = p.rfind(sep)
AttributeError: 'Image' object has no attribute 'rfind'
Danke im Voraus
Gruß Mathi