(PECL cairo >= 0.1.0)
Retrives the current antialias mode
public int CairoContext::getAntialias ( void )
Object oriented style (method):
Procedural style:
Returns the current CairoAntialias mode, as set by CairoContext::setAntialias().
Parameters:
context
A valid CairoContext object created with CairoContext::__construct() or cairo_create()
Returns:
The current CairoAntialias mode.
Examples:
Object oriented style
1 2 3 4 5 6 7 8 9 10 | <?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:
int(3)
Procedural style
1 2 3 4 5 6 7 8 9 10 | <?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:
int(3)
See also:
Please login to continue.