What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-19 00:13:02
draw box with mouse on image in canvas tkinter
import PIL.Image import Image import ImageTk from Tkinter import * class ExampleApp(Frame): def __init__(self,master): Frame.__init__(self,master=None) self.x = self.y = 0 self.canvas = Canvas(self, cursor="cross&qu... Add solution -
Python 2021-09-03 14:28:03
Qt convert image to base64
# Python Solution # The PIL Module has a class that helps with this. from PIL.ImageQt import ImageQt image = PySide2.QtGui.QPixmap.toImage() image = ImageQt(image) # Now you have an object with PIL + Qt support. import base64 from io import BytesIO buff... Add solution
Best helpers
Ranking is empty