On 11/23/12 21:32, Francois Oligny-Lemieux wrote: > Hi, > > I'm porting some X11 code to DirectFB and there are some calls that construct > images to be rendered with the content from a memory buffer. It uses > XCreatePix > for X11, CreateDIBSection for win32 and NewGWorld for osx. > > Anyone has an idea what is the corresponding operation on DirectFB and/or > where I could find an example, any help is appreciated. I already found the > functions > that create an image from file, but in my case it's an image from buffer.
You need to use IDirectFB::CreateSurface(), then call IDirectFBSurface::Write() to put the data. -- Denis Oliver Kropp DirectFB integrated media GmbH _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users