[cairo] Gradient Transformation Problems
Me Myself
radracer59 at inbox.com
Wed Dec 12 10:10:25 PST 2007
> You can manually adjust the points, yes, like you did. But you also
> need to understand that the interpolation of the gradient colors is
> also affected by the transformation, and your "manual" case can't
> account for this.
>
> Look at your two results and look at the angle of lines of uniform
> color in each gradient. In both cases these lines are normal to the
> line you used in cairo_pattern_create_linear, but the computation of
> "normal" is within user-space, so it is transformed differently in
> both cases.
>
> Does that make sense?
Ok, yes that makes sense.
So given any arbitrary X and Y scaling, do you know a formula I could use on the gradient pattern points to make them maintain the proper results when I manually calculate the points?
____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!
More information about the cairo
mailing list