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
Examples updated to the latest Camel Case .. Was a pain converting them
[phpCairo.git]
/
testcases
/
phpCairo
/
caps-sub-paths.php
blob
9893628d47cba104752898175b00b07ae171c9ef
1
<
?
2
$sur
=
new
CairoImageSurface
(
FORMAT_ARGB32
,
20
,
20
);
3
$con
=
new
CairoContext
(
$sur
);
4
5
$con
->
save
();
6
$con
->
setSourceRgb
(
1
,
1
,
1
);
7
$con
->
paint
();
8
$con
->
restore
();
9
10
$con
->
setLineWidth
(
4
);
11
$con
->
setLineCap
(
LINE_CAP_ROUND
);
12
$con
->
moveTo
(
4
,
4
);
13
$con
->
lineTo
(
4
,
16
);
14
$con
->
moveTo
(
10
,
4
);
15
$con
->
lineTo
(
10
,
16
);
16
$con
->
moveTo
(
16
,
4
);
17
$con
->
lineTo
(
16
,
16
);
18
19
$con
->
stroke
();
20
$sur
->
writeToPng
(
"caps-sub-paths-php.png"
);
21
?
>