[Image-SIG] Trying to display a BMP image
William Peloquin
PeloquinW@esi.com
Fri, 24 Mar 2000 14:46:53 -0800
Hi,
I am trying to load a BMP image and display it in a label. I am pretty new
to using PIL, and I have not used Python in quite a while. I will appreciate
any hints!
I am using the following bit of code, and I am having no luck....
img = Image.open('im000001.bmp')
img.load() #tried with and without load
print 'mode = ', img.mode
print 'size = ', img.size
pi = BitmapImage(img) #or PhotoImage(img)
Label(liveRawF, image=pi).pack(side=TOP, expand=YES, fill=BOTH)
Thanks,
Willie
Willie Peloquin
esi - Vision Products Division
734.332.7180 phone
734.332.7077 fax