From: S. M. <sm...@rn...> - 2000-02-08 01:59:18
|
Robert L Krawitz wrote: > About the best thing you could do is recompute the lookup table when > your print function is called. In fact, calling compute_lut() from > inside print.c is really silly; it should be called from inside the > print function, and I may just change this. There are already > intensity controls for each of the colors; adding gamma controls isn't > hard, but it is tedious. > > It would really make sense to put the LUT in the variables block, > actually, and save it in the printrc. The LUT (unlike the color map) > is really part of the printer definition, not of the image. In fact, > it would arguably make sense to put the color mapping stuff in the > image code, rather than the print functions, so that the image code > does the translation to RGB or RGBA. > > If you want to expose them, you'll have to hack the UI code in > print.c, which is ugly. You should probably discuss this with Steve > Miller <sm...@rn...>, who's working on the GUI. > > I'm beginning to think that we should consider redoing the printrc > file format some time during this development cycle. We've already > added stuff to it, and it's rather ugly. The "obvious" thing to do is > to come up with an XML definition here; we can then easily add stuff > later, and people can edit printer definitions with their favorite > browser (hint: transfer functions!). > > I think GTK actually has a pretty nice gamma curve widget. It's not > really documented anywhere, but I think SANE uses this (hint hint, > somebody :-) ). This would be a real win for us. > Taking the last part first, I found a very brief reference to it in Pennington's "GTK+/Gnome Application Development". But there was no discussion of it's features or interface. If someone can point me in the right direction, this would definitely go great in an 'advanced settings' type window. I can also add individual color gamma correction widgets while I'm redoing that part. Should this be for all printers, or just cannon? I haven't got far enough for anything to be even set in mud yet, so if anyone has any suggestions or requests, I'm all ears. Steve -- ----------------------------------------- Just because I have a short attention span doesn't mean I ------------------------------------------ |