[Gambas-user] how copy the screen to memory on a sdl project

Benoît Minisini gambas at ...1...
Sat Jul 19 21:03:09 CEST 2014


Le 18/07/2014 08:32, Jack a écrit :
> Hello !
>
> screen.copy (x, y, w, h) does not exist, then in a sdl project, how to
> make a copy of part of the screen.
>

In revision #6389, I added a Window.Screenshot() method that returns the 
contents of the SDL window as an Image object.

I will add optional arguments so that we can get only a sub-part of the 
window.

Please check it and tell me if it works for you. I tested it with the 
BeastScroll example only.

Regards,

-- 
Benoît Minisini




More information about the User mailing list