weird question about base.screenshot() [solved]


I am sorry to ask weird questions (heh… I do most of the time, sooo…) but I have another one. :smiley:

Is there a way to use a method like base.screenshot() but without saving the file to disk? (keeping the image content in a variable for further work to be done)

I am asking this because I want to save a screen to an image that needs to be streamed afterwards to a remote machine. I don’t want to save the image first because that means a lot of trouble with file handling, unique file names and quite some other things I want to avoid.

Is there a way to do so? Maybe by editing the screenshot()-function if nothing else works?

Thanks in advance! :slight_smile:

Regards, Bigfoot29

you can create a one time texture buffer and download its texture from the vram and stream it.

p = PNMImage()


:open_mouth: Oh… it was that easy.

Sorry for bothering - you wrote that already twice. :blush:

But as usual: Thanks for the fast replies you two. :slight_smile:

Regards, Bigfoot29