[Doxygen-develop] [PATCH] Formula transparency patch.
Brought to you by:
dimitri
From: E. R. <er...@ca...> - 2009-09-02 11:24:10
|
I've attached a patch to render formulas slightly differently. The current method of rendering is to render the formula to a white background, then output the exact colour as opaque, except for pure white which is set to fully transparent. The new method (attached) renders all non white pixels as pure black, but sets various levels of transparency to achieve a smooth effect. This ensures that the equations render correctly if the web browser background is not set to white. I haven't quite figured out how to set it up so that it can be switched on with a configuration option. To illustrate the method with a rather exxtreme example, I've composited a sample formula against a dark blue background, and attached the images. Regards -Ed -- (You can't go wrong with psycho-rats.)(http://mi.eng.cam.ac.uk/~er258) /d{def}def/f{/Times s selectfont}d/s{11}d/r{roll}d f 2/m{moveto}d -1 r 230 350 m 0 1 179{ 1 index show 88 rotate 4 mul 0 rmoveto}for/s 12 d f pop 235 420 translate 0 0 moveto 1 2 scale show showpage |