©
Dokumen ini menggunakan Manual laman web PHP Cina Lepaskan
(PECL cairo >= 0.1.0)
Context is the main object used when drawing with cairo. To draw with cairo, you create a CairoContext, set the target CairoSurface, and drawing options for the CairoContext, create shapes with functions . like CairoContext::moveTo() and CairoContext::lineTo() , and then draw shapes with CairoContext::stroke() or CairoContext::fill() . Contexts can be pushed to a stack via CairoContext::save() . They may then safely be changed, without loosing the current state. Use CairoContext::restore() to restore to the saved state.
$path
)$x
, float $y
, float $radius
, float $angle1
, float $angle2
)$x
, float $y
, float $radius
, float $angle1
, float $angle2
)$surface
)$x1
, float $y1
, float $x2
, float $y2
, float $x3
, float $y3
)$x
, float $y
)$x
, float $y
)$glyphs
)$x
, string $y
)$x
, string $y
)$x
, string $y
)$pattern
)$surface
[, string $x
[, string $y
]] )$x
, string $y
)$alpha
)$content
)$x
, string $y
, string $width
, string $height
)$x1
, string $y1
, string $x2
, string $y2
, string $x3
, string $y3
)$x
, string $y
)$x
, string $y
)$angle
)$x
, string $y
)$family
[, string $slant
[, string $weight
]] )$antialias
] )$dashes
[, string $offset
] )$setting
)$fontface
)$matrix
)$fontoptions
)$size
)$setting
)$setting
)$width
)$matrix
)$limit
)$setting
)$scaledfont
)$pattern
)$red
, string $green
, string $blue
)$red
, string $green
, string $blue
, string $alpha
)$surface
[, string $x
[, string $y
]] )$tolerance
)$text
)$text
)$string
)$matrix
)$x
, string $y
)$x
, string $y
)$x
, string $y
)