|
From: Ethan A M. <merritt@u.washington.edu> - 2006-10-12 15:00:32
|
On Wednesday 11 October 2006 11:42 pm, Daniel J Sebald wrote:
> Daniel J Sebald wrote:
> The Adobe book indicates that gamma correction can be implemented
> with what is called a transfer function (the second level of color mapping).
> So, as an alternative, I simply added a line before the image definition
>
> if (sm_palette.colorMode == SMPAL_COLOR_MODE_GRAY)
> fprintf(gppsfile, "%s{1.0 %g div exp} settransfer\n", space, sm_palette.gamma);
"settransfer" is Level 2 PostScript, so your patch needs to be check the
"level1" flag and/or check for support dynamically.
>
> What this does is create the line below:
>
> gsave
> {1.0 0.2 div exp} settransfer
> 875 4740 translate
> 4959 -4240 scale
> 100 10 8
> [ 100 0 0 10 0 0 ]
> currentfile /ASCII85Decode filter
> image
>
> I'll send you the patch separately so that you may place it on SourceForge. [Would it be possible to change SF to allow attaching to someone else's bug report?] Let me know if that works.
>
> I'm guessing that transfer functions could be widened in scope. So if you'd like to use a transfer function somehow rather than /pm3dGamma, let me know.
>
> Dan
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> gnuplot-beta mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
>
--
Ethan A Merritt
Biomolecular Structure Center
University of Washington, Seattle 98195-7742
|