2007/9/24, catch <[EMAIL PROTECTED]>:
>
> Hi,
>
> I want to save the the buffer of surface to a file,
> maybe a file with raw data or an image file,
> how can I do that?


There is a special function to do it :
http://www.directfb.org/docs/DirectFB_Reference/IDirectFBSurface_Dump.html

I read the API of IDirectfbSurface
> but the GetFramebufferOffset 
> **<http://IDirectFBSurface_GetFramebufferOffset.html>()
> seems not work.
> Is there any other way to access the surface buffer?


To access to video buffer you should use Lock()  / Unlock()  functions
http://www.directfb.org/docs/DirectFB_Reference/IDirectFBSurface_Lock.html

Thanks.
>
>
> _______________________________________________
> directfb-users mailing list
> [email protected]
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
>
>


-- 
Best Regards
Nikita Egorov
[EMAIL PROTECTED]
[EMAIL PROTECTED]
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to