[cairo] wrong bezier curve in image surface

Fried, Vojtech vojtech.fried at streamserve.com
Tue Dec 14 07:54:30 PST 2010


Hi,

 

One of my test in my project does not look as expected. It looks like
the bezier curve is somehow clipped where it should not be. Tested on
linux and windows with cairo 1.10 and image surface. It works on pdf
surface.

See [http://yfrog.com/i3cairop] for cairo output and
[http://yfrog.com/fybeziersegmentsp] for how it should look (included
how the curve was made).

Any idea?

 

Here is a cairo trace for it:

%!CairoScript - python

%*** Warning CairoScript is still a new tracing format, and is subject
to change.

dict

  /width 793 set

  /height 1122 set

  /format //ARGB32 set

  image dup /s0 exch def

context % c0

1.333333 1.333333 scale

N 0 0 595.28 841.89 rectangle

/source get /p0 exch def

/p1 1 1 1 1 rgba def

p1 set-source

fill

p0 set-source

/p1 undef

//EVEN_ODD set-fill-rule

//ANTIALIAS_GRAY set-antialias

<< /antialias //ANTIALIAS_GRAY >> set-font-options

/p1 0 0 0 1 rgba def

0 0 0 1 set-source-rgba

save

/p2 0 0 0 1 rgba def

/p3 0 0 0 1 rgba def

1 0 0 1 37.415868 226.535342 matrix transform

0 0 0 1 set-source-rgba

1 set-line-width

//LINE_JOIN_MITER set-line-join

//LINE_CAP_BUTT set-line-cap

[] 0 set-dash

47.623502 198.661508 m 33.450274 149.055209 118.489644 -6.850303
161.009329 0.236311 c 203.529014 7.322926 274.395156 227.007965
217.702242 227.007965 c 161.009329 227.007965 217.702242 28.582768
47.623502 85.275682 c -122.455238 141.968595 217.702242 170.315052
217.702242 198.661508 c 217.702242 227.007965 61.796731 248.267808
47.623502 198.661508 c stroke

restore

/p2 undef

/p3 undef

save

/p2 0 0 0 1 rgba def

/p3 0 0 0 1 rgba def

1 0 0 1 37.308532 226.32874 matrix transform

1 0 0 1 set-source-rgba

1 set-line-width

//LINE_JOIN_MITER set-line-join

//LINE_CAP_BUTT set-line-cap

[] 0 set-dash

N 0 0 239.180149 228.636734 rectangle

stroke

restore

/p2 undef

/p3 undef

/target get (out.png) write-to-png pop

/p0 undef

pop % c0 destroyed

 

/Vojtech

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20101214/184c9c72/attachment.html>


More information about the cairo mailing list