From: Joao C. <jc...@fe...> - 2002-01-10 17:01:43
|
On Thursday 10 January 2002 3:49 pm, Olof Svensson wrote: > Joao Cardoso wrote: > > > The best solution is probably to create a second entry point for > > > passing an image as a PLFLT * pointer. There are two possibilities, > > > either by using a flag telling plimage which type of pointer is pas= sed > > > (to avoid creation of unused arrays in the case of rectangular imag= es) > > > or by creating a new plplot image command. > > > > Perhaps the latter will be more user understandable. It could just se= t a > > variable in plstrm.h (that could be used also by drivers), and call = the > > standard plimage(). > > This sounds to us as a good idea - however, just a thought, since > PLFLT * is used internally by plimage, wouldn't it be better to let the > current version of plimage call the new function? Yes, of course. > (In fact, to be more compatible with PGPLOT Is PLplot API compatible with PGPLOT? I didn't knew that. I knew that PLp= lot=20 start after, or was inspired by, PGPLOT. > the new function should be called plimage and the > existing one should be renamed, however we have nothing against keeping > the current version as plimage). Could you suggest a name for the new > plimage function? What about "plimage" for the new function and "plimagefe" (front end) for= the=20 current one? Or, if compatibility with PGPLOT is not mandatory, "plimages= "=20 (straight) for the new function? hum, this could be misleading, Pick your= own=20 names, I'm not concerned with that. Yesterday I though that plimage() structure was steady, but today I'm not= =20 certain of that. It looks like that it is not possible to save a displaye= d=20 image in another format, opening another device and replaying the plot=20 buffer. (Using the standard plmkstrm/plcpstrm/plreplot/plend1 way of savi= ng=20 plots). But the modifications should be minor, so you can start to code your=20 modifications and send a patch. Bye, Joao PS-Did you see the current know bugs of plimage, described in a comment i= n=20 x20c.c? |