Hello Aman. Writing a ppm is always going to be easier than reading ;)
You need to write your own provider. I suggest to take an existing one, copy it and adapt it, e.g. gif. So you'd extend Makefile.am, copy the idirectfbimageprovider_gif.c to ..._ppm.c for instance, and replace the content with your own. Documentation for IDirectFBImageProvider <http://www.directfb.org/docs/DirectFB_Reference_1_3/IDirectFBImageProvider.html> is on the website of DirectFB, check http://www.directfb.org/docs/DirectFB_Reference_1_3/index.html for instance. Note that you will provide a Constructor too, and I think you can omit WriteBack without repercussions; but the code should be clear too. hth Niels aman aggarwal wrote: > Hi there!! > > I am trying to display a .PPM image file using DirectFB, but it fails > to create a provider. > Any suggestions , how can this be done. > > Directfb surface dump function generates PPM files. > So, it does seem it should not be so difficult to write a simple image > provider. > > I am new to directfb, please point to documentation on writing an > imageprovider, if any. > > > Kind regards > > lucky mojo > > > ------------------------------------------------------------------------ > > _______________________________________________ > directfb-users mailing list > directfb-users@directfb.org > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users > -- .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users