[cairo] problem with large scale gradients
danilo at impara.de
Fri Oct 26 07:06:05 PDT 2007
We want to make drawing calls in an extremely small unit (cTwip = (1/127
twip = 1/20 point = 1/1440 inch), that allows for integer conversion
between metric and imperial measure). Thus we have a very small scaling
factor on the surface (about 1/2540) for conversion and we invoke
drawing calls with extreme large numbers (about 2540 to several millions).
All drawing works fine with this setup, except for gradients (tested on
windows xp with image surface and window surface).
I have attached a small test program, that generates gradients with
Resulting images are also available at:
Already after small changes to the scale factor, the images are not 100%
The change from scale 32 to 64 starts to be visually apparent and from
there the gradient looses its shape and drifts off.
I also recognized, that creating such large scale gradients by using
cairo_pattern_set_matrix() worked fine.
Do you have any hints, what the problem is?
thanks in advance,
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the cairo