On Mon, Oct 26, 2009 at 7:28 AM, Jack W <ji...@yahoo.com> wrote: > > Hi All, > > I want to save the current screen (framebuffer) (say 1280x1024) to a surface > and then display this surface in a small area (say 600x400, StrechBlit) in > the next frame. How to do that? Or does any other method can display the > previous screen? > I know you can "dump" a surface in images http://directfb.org/docs/DirectFB_Reference_1_4/IDirectFBSurface_Dump.html but i'm not sure if DirectFB provides a method to dump the entire current screen to a image object (or to a surface object).. there is a dfbdump command line tool which does what you want but that tool isn't accessible with the api (as far as i know) : http://git.directfb.org/?p=core/DirectFB.git;a=blob;f=tools/dfbdump.c;h=f4e9d260162af811b15c87eda6537a2793f5afe0;hb=989ce3a6d746c78cee250cc96705564c74e9e7a6 ... it would be imho nice to have this option in the API as well.. in IDirectFBDisplayLayer::Dump() perhaps?
> BTW, I saw many nice DFB application screenshots on www.directfb.org. How can > I download these example codes? > Most of those applications are in http://directfb.org/index.php?path=Main%2FDownloads&page=1 and in http://directfb.org/index.php?path=Main%2FDownloads&page=5 and for more up to date programs try the directfb git repo: http://git.directfb.org/ that has quite a few applications. > Thanks a lot for help! > > Jack Don't take my info for granted though. I'm just interested in DFB and tried a few things with it. Not nearly enough to fully know how everything works with DFB. Btw, first post here after watching for ~2 years _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev