Esempio n. 1
0
/* {{{ proto bool GmagickDraw::getStrokeAntialias()
        Returns the current stroke antialias setting. Stroked outlines are antialiased by default.  When antialiasing is disabled stroked pixels are thresholded to determine if the stroke color or underlying canvas color should be used.
*/
PHP_METHOD(gmagickdraw, getstrokeantialias)
{
        php_gmagickdraw_object *internd;
        MagickBool status;

        if (zend_parse_parameters_none() == FAILURE) {
                return;
        }
        
        internd = (php_gmagickdraw_object *)zend_object_store_get_object(getThis() TSRMLS_CC);
        status = DrawGetStrokeAntialias(internd->drawing_wand);

        if (status == MagickFalse) {
                RETURN_FALSE;
        } else {
                RETURN_TRUE;
        }
}
Esempio n. 2
0
static bool HHVM_METHOD(ImagickDraw, getStrokeAntialias) {
  auto wand = getDrawingWandResource(Object{this_});
  return DrawGetStrokeAntialias(wand->getWand()) != MagickFalse;
}