Am 08.10.2007 um 12:09 schrieb Jean-Marc Lasgouttes:
Stefan Schimanski <[EMAIL PROTECTED]> writes:Sure. On enterMonochromeMode you pass a min and a max color. Every drawing command sets the QPen color before it does the real drawing. But in monochrome mode the color is first converted into greyscale and then mapped into the interval [min,max]. So "white" will be mapped to min, a half blue color will be between min and max somewhere, and black will go to max. This gives a grey scale effect.Isn't there some built-in way of doing this ? Some fancy compositing capability?
That's a good question. I was looking over the Qt documentation, but didn't see anything right away. A pure greyscale rendering is not enough, because the fonts must blend correctly with the background, which is the light yellow or whichever color the user selected.
Stefan
PGP.sig
Description: Signierter Teil der Nachricht