Category "pysdl2"

How to create a pySDL2 image from a memory buffer

I have a pySimpleGUI program that create an image from a memory buffer containing a JPEG image. from PIL import ImageTk image = ImageTk.PhotoImage( data=buf) #

Render an array of rgb pixels on a canvas

I have this problem, I have a socket that sends me packets each one containing a row of a frame. Using python I reconstruct the full-frame as an array of RBG pi