Re: Screen capture - using Frame buffer from theapplication

"Jenkins, Clive" <[email protected]> Tue, 6 Mar 2007 12:42:05 -0000
Newsgroups gmane.linux.fbdev.user
Message-ID <35786B99AB3FDC45A8215724617919730108B872@gbrwgceumf01.eu.xerox.net>
> Currently I need to capture the screen shot (print screen)  with my
> application.
> Is there any idea\code by which we can capture the screen from
> application by using the frame buffer ?
>  
> Thanks,
> Narendra

You can do it with a shell command:

 cp /dev/fb0 screenshot.raw

[then maybe use ImageMagick to process the file screenshot.raw]

Or you can do it with your own program using open(), read()or mmap(),
close() on the frame buffer device.

Look at the frame buffer documentation in the kernel tree under the
Documentation directory, and use Google to find other material.

Clive

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV