(PECL cairo >= 0.1.0)
CairoContext::getAntialias -- cairo_get_antialias — Retrives the current antialias mode
Stil obiect-orientat (method):
Stil procedural:
Returns the current CairoAntialias mode, as set by CairoContext::setAntialias().
context
A valid CairoContext object created with CairoContext::__construct() or cairo_create()
The current CairoAntialias mode.
Example #1 Stil obiect-orientat
<?php
$surface = new CairoImageSurface(CairoFormat::ARGB32, 50, 50);
$context = new CairoContext($surface);
$context->setAntialias(CairoAntialias::MODE_SUBPIXEL);
var_dump($context->getAntialias());
?>
Exemplul de mai sus va afișa ceva similar cu:
int(3)
Example #2 Stil procedural
<?php
$sur = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 50, 50);
$con = cairo_create($sur);
cairo_set_antialias($con, CAIRO_ANTIALIAS_SUBPIXEL);
var_dump(cairo_get_antialias($con));
?>
Exemplul de mai sus va afișa ceva similar cu:
int(3)