repo.or.cz
/
phpCairo.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Changed the entire file structure to remove the .c includes from cairo.c
[phpCairo.git]
/
testcases
/
phpCairo
/
fill-missed-stop.php
blob
f07b62174f8233afd34870510776b485b74152f2
1
<
?
2
$sur
=
new
CairoImageSurface
(
FORMAT_ARGB32
,
53
,
53
);
3
$con
=
new
CairoContext
(
$sur
);
4
5
$con
->
setSourceRgb
(
1
,
0
,
0
);
6
$con
->
translate
(
1
,
1
);
7
$con
->
moveTo
(
0
,
0
);
8
$con
->
lineTo
(
25
,
50
);
9
$con
->
lineTo
(
25
,
0
);
10
$con
->
lineTo
(
50
,
25
);
11
$con
->
lineTo
(
0
,
25
);
12
$con
->
closePath
();
13
$con
->
fill
();
14
$sur
->
writeToPng
(
"fill-missed-stop-php.png"
);
15
?
>
16