2 $dashes = array(50.0, /* ink */
7 $ndash = count($dashes);
9 $sur = new CairoImageSurface(0,500,500);
10 $con = new CairoContext($sur);
11 $con->set_dash ($dashes, $ndash, $offset);
12 $con->set_line_width (10.0);
13 $con->move_to (128.0, 25.6);
14 $con->line_to ( 230.4, 230.4);
15 $con->rel_line_to ( -102.4, 0.0);
16 $con->curve_to ( 51.2, 230.4, 51.2, 128.0, 128.0, 128.0);
18 $sur->write_to_png("image_dash.png");