|
From: Geert U. <ge...@li...> - 2002-12-27 11:34:40
|
On Fri, 27 Dec 2002, Abhilash wrote:
> I need to capture the screen .For that I use mirror driver in Windows for
> capturing screen.
> ie, its basically overloading the driver functions.
>
> So in case of Linux, is there any method like this or which is the best
> method?
> In Xlib there are some functions to capture screen and also heard abt VESA
> which is better?
If you are using a frame buffer device, you can capture the contents of
/dev/fb*. Either read from /dev/fb*, or mmap() it. The data you receive are in
the native format of the graphics chip. For CLUT modes, you have to use an
ioctl() to get the colormap.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@li...
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
|