Selaa lähdekoodia

Fix deprecated call to pil method

tags/v0.99.beta20^2^2
alxf 7 vuotta sitten
vanhempi
commit
cc8481c50c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      python/examples/img2txt.py

+ 1
- 1
python/examples/img2txt.py Näytä tiedosto

@@ -224,7 +224,7 @@ def main():
dit.set_charset(charset) dit.set_charset(charset)


#create dither #create dither
dit.bitmap(cv, 0, 0, width, height, img.tostring()) dit.bitmap(cv, 0, 0, width, height, str(img.tobytes()))


#print export to screen #print export to screen
sys.stdout.write("%s" % cv.export_to_memory(exformat)) sys.stdout.write("%s" % cv.export_to_memory(exformat))


||||||
x
 
000:0
Ladataan…
Peruuta
Tallenna