[cairo] Conical gradients with pixman with rotation

Marco Wertz marco.wertz at gmx.de
Wed Jun 16 03:26:01 PDT 2010


"Soeren Sandmann" <sandmann at daimi.au.dk> writes:
> 
> There used to be a bug where pixman would miscalculate the
> angle. Maybe that's what you are seeing? That bug is fixed in 0.18.0.

I've now upgraded to 0.18.2 but I'm afraid the problem is still there. I'm not sure whether this is actually a bug or whether it is a feature :) I'm attaching a small example source code that shows what I mean. The 45 degree rotated conical gradient generated by my example looks like this:

http://i45.tinypic.com/2cpq435.png

But I think this look is wrong. Instead, 45 degree rotation should look like this: (generated in CorelDraw)

http://i45.tinypic.com/x0xjef.png

But I'm unable to achieve this look with the conical gradient functions in pixman. Is it really intended this way or is this a bug in pixman?

Best regards,

Marco
-- 
GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.  
Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: text/x-c
Size: 2550 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100616/d047426d/attachment.bin>


More information about the cairo mailing list