Is there a way to convert a pygame surface to a png or jpeg IN MEMORY instead of saving to disk and loading again?
get_screen = SCREEN.subsurface(0, 0, SCREENW, SCREENH) # grab the screen
my_image = get_screen.convert(jpeg) # now convert the image to jpeg
and now my_image is a jpeg image of get_screen
I searched the net but couldn't find any other way other than save to disk as jpeg and reload.
Any positive OR negative help is very much appreciated.