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

Tobias Boege taboege at ...626...
Fri Jul 18 15:09:29 CEST 2014


On Fri, 18 Jul 2014, Jack wrote:
> Le 18/07/2014 14:14, Julio Sanchez a ??crit :
> > Jack:
> >
> >> with a Gambas command ?
> > gb.desktop component with:
> >
> > Dim p As Picture
> > p =Desktop.Screenshot(x1, y1, x2 , y2 )
> > p.save ("filename.png")
> >
> >
> > ' link: http://gambasdoc.org/help/comp/gb.desktop/desktop/screensaver?en&v3
> >
> > But not if you're going to run gb.sdl
> 
> 
> sorry Julio, but I only have sdl.
> 
> It's a pity we cannot copy part of the screen in a picture variable. we 
> could draw a figure in one part of the screen and then we could post it 
> everywhere else.
> 

By "screen" you mean the whole desktop, not just your SDL window, right?

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk




More information about the User mailing list