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
Added some test cases ....
[phpCairo.git]
/
testcases
/
phpCairo
/
fill-missed-stop.php
blob
33737af327e8dbf36df2639aa987b82f1507eb9a
1
<
?
2
$sur
=
new
CairoImageSurface
(
FORMAT_ARGB32
,
53
,
53
);
3
$con
=
new
CairoContext
(
$sur
);
4
5
$con
->
set_source_rgb
(
1
,
0
,
0
);
6
$con
->
translate
(
1
,
1
);
7
$con
->
move_to
(
0
,
0
);
8
$con
->
line_to
(
25
,
50
);
9
$con
->
line_to
(
25
,
0
);
10
$con
->
line_to
(
50
,
25
);
11
$con
->
line_to
(
0
,
25
);
12
$con
->
close_path
();
13
$con
->
fill
();
14
$sur
->
write_to_png
(
"fill-missed-stop-php.png"
);
15
?
>
16