CairoContext::getAntialias
cairo_get_antialias
Retrives the current antialias mode
Description
Object oriented style (method):
public int CairoContext::getAntialias
( void
)
int cairo_get_antialias
( CairoContext $context
)
Parameters
-
context
-
A valid CairoContext object created with
CairoContext::__construct or cairo_create
Return Values
The current CairoAntialias mode.
Examples
Example #1 Object oriented style
<?php
$surface = new CairoImageSurface(CairoFormat::ARGB32, 50, 50);
$context = new CairoContext($surface);
$context->setAntialias(CairoAntialias::MODE_SUBPIXEL);
var_dump($context->getAntialias());
?>
The above example will output
something similar to:
Example #2 Procedural style
<?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));
?>
The above example will output
something similar to:
See Also
- CairoContext::setAntialias
- CairoAntialias